Bug 302182

Summary: [GTK][WPE] Performance test Animation/balls.html does not work because of XHTML 1.0 Strict doctype headers
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: Tools / TestsAssignee: Carlos Alberto Lopez Perez <clopez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Carlos Alberto Lopez Perez
Reported 2025-11-07 14:50:56 PST
The performance test Animation/balls.html does not work on GTK or WPE, it gives error And if the test file is loaded directly on minibrowser you see this: This page contains the following errors: error on line 112 at column 28: StartTag: invalid element name Below is a rendering of the page up to the first error. That is because it is trying to load the page in XHTML 1.0 Strict mode. The strict XHTML doctype forces the browser to parse the inline JavaScript as XML unless is wrapped inside CDATA sections via comments, which isn't happening in this case. So, for example, "angle < Math.PI" breaks parsing because < appears to start an XML tag which is not finished. The Apple port or other browsers (Chromium) seem to ignore the strict mode when parsing the script content, but for some reason WebKitGTK doesn't do that.
Attachments
Carlos Alberto Lopez Perez
Comment 1 2025-11-07 14:57:46 PST
EWS
Comment 2 2025-11-07 19:57:53 PST
Committed 302759@main (dcbf1599ac51): <https://commits.webkit.org/302759@main> Reviewed commits have been landed. Closing PR #53610 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-11-07 19:58:12 PST
Note You need to log in before you can comment on or make changes to this bug.