Bug 22578

Summary: hasTagName does not play well with <video>, <audio> and <source>
Product: WebKit Reporter: Julien Chaffraix <jchaffraix>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: annevk, emacemac7, eric.carlson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

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.