<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>302182</bug_id>
          
          <creation_ts>2025-11-07 14:50:56 -0800</creation_ts>
          <short_desc>[GTK][WPE] Performance test Animation/balls.html does not work because of XHTML 1.0 Strict doctype headers</short_desc>
          <delta_ts>2025-11-07 19:58:12 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2157370</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2025-11-07 14:50:56 -0800</bug_when>
    <thetext>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&apos;t happening in this case. 
So, for example, &quot;angle &lt; Math.PI&quot; breaks parsing because &lt; 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&apos;t do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157372</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2025-11-07 14:57:46 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/53610</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157421</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-11-07 19:57:53 -0800</bug_when>
    <thetext>Committed 302759@main (dcbf1599ac51): &lt;https://commits.webkit.org/302759@main&gt;

Reviewed commits have been landed. Closing PR #53610 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157422</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-11-07 19:58:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/164297540&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>