[webkit-changes] [WebKit/WebKit] 0993d2: HTMLTagNames.in should list MathML and SVG element...
Ryosuke Niwa
noreply at github.com
Fri Jan 12 10:04:05 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0993d23875f17c5b4dd76b392dcf7c80b907cdf6
https://github.com/WebKit/WebKit/commit/0993d23875f17c5b4dd76b392dcf7c80b907cdf6
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2024-01-12 (Fri, 12 Jan 2024)
Changed paths:
M Source/WebCore/dom/Document.cpp
M Source/WebCore/html/HTMLTagNames.in
Log Message:
-----------
HTMLTagNames.in should list MathML and SVG elements with hyphen in its name
https://bugs.webkit.org/show_bug.cgi?id=267444
Reviewed by Antti Koivisto.
This PR enlists MathML and SVG elements with hyphen in its name in HTMLTagNames.in so that
HTMLElementFactory::createKnownElement will create HTMLUnknownElement for those elements.
* Source/WebCore/dom/Document.cpp:
(WebCore::createUpgradeCandidateElement):
(WebCore::validateCustomElementNameWithoutCheckingStandardElementNames): Extracted from
Document::validateCustomElementName.
(WebCore::isStandardElementName): Ditto.
(WebCore::Document::validateCustomElementName):
* Source/WebCore/html/HTMLTagNames.in:
Canonical link: https://commits.webkit.org/272980@main
More information about the webkit-changes
mailing list