[Webkit-unassigned] [Bug 120297] New: HTMLUnknownElement doesn't have own tag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 26 03:33:38 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=120297
Summary: HTMLUnknownElement doesn't have own tag
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: gyuyoung.kim at samsung.com
As mentioned in https://bugs.webkit.org/show_bug.cgi?id=119951#c13, HTMLUnknownElement can own specific tag(e.g. audiotag, videoTag and so on) though it isn't correct element class. In this case, isHTMLXXXElement() returns "true" though it is HTMLUnknowElement.
PassRefPtr<HTMLElement> HTMLElementFactory::createHTMLElement(const QualifiedName& qName, Document* document, HTMLFormElement* formElement, bool createdByParser)
{
if (!document)
return 0;
#if ENABLE(CUSTOM_ELEMENTS)
if (document->registry()) {
if (RefPtr<CustomElementConstructor> constructor = document->registry()->find(nullQName(), qName)) {
RefPtr<Element> element = constructor->createElement();
ASSERT(element->isHTMLElement());
return static_pointer_cast<HTMLElement>(element.release());
}
}
#endif
if (!gFunctionMap)
createFunctionMap();
if (ConstructorFunction function = gFunctionMap->get(qName.localName().impl())) {
if (PassRefPtr<HTMLElement> element = function(qName, document, formElement, createdByParser))
return element;
}
return HTMLUnknownElement::create(qName, document);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list