[Webkit-unassigned] [Bug 22578] New: hasTagName does not play well with <video>, <audio> and <source>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 1 16:23:30 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22578

           Summary: hasTagName does not play well with <video>, <audio> and
                    <source>
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jchaffraix at pleyo.com


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.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list