Bug 254881 - HTML parser: inline SVG tag name adjustment
Summary: HTML parser: inline SVG tag name adjustment
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-02 02:02 PDT by Anne van Kesteren
Modified: 2023-04-09 02:03 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne van Kesteren 2023-04-02 02:02:52 PDT
Assuming people review bug 254755 as a favorable change, we should consider doing the same for SVG tag names. Source/WebCore/dom/make_names.pl has a generic capability to create adjustXTagName where X can be any language, but we only need it for SVG, only in the HTML parser, and only for the tag names the HTML Standard lists (which should be a fixed list for eternity).
Comment 1 Anne van Kesteren 2023-04-03 06:03:07 PDT
Inlining the function is pretty straightforward, but removing all support for CaseAdjusted atoms from Source/WebCore/dom/make_names.pl as well is a bit more involved.

Is inlining adjustSVGTagName into HTMLTreeBuilder a good enough first step?
Comment 2 Radar WebKit Bug Importer 2023-04-09 02:03:35 PDT
<rdar://problem/107802125>