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 / Tests | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Alberto Lopez Perez
Pull request: https://github.com/WebKit/WebKit/pull/53610
EWS
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
<rdar://problem/164297540>