RESOLVED CONFIGURATION CHANGED 22578
hasTagName does not play well with <video>, <audio> and <source>
https://bugs.webkit.org/show_bug.cgi?id=22578
Summary hasTagName does not play well with <video>, <audio> and <source>
Julien Chaffraix
Reported 2008-12-01 16:23:30 PST
Currently the HTMLElementFactory (and make_names.pl) uses the following code to create a <video> element: if (!MediaPlayer::isAvailable()) return new HTMLElement(tagName, doc); return new HTMLVideoElement(videoTag, doc); This means that the common pattern: if (element->hasTagName(videoTag)) HTMLVideoElement* htmlElement = static_cast<HTMLVideoElement*>(element); may fail for those elements.
Attachments
Anne van Kesteren
Comment 1 2023-12-28 08:19:11 PST
Pretty sure this is no longer a problem.
Note You need to log in before you can comment on or make changes to this bug.