<?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>223174</bug_id>
          
          <creation_ts>2021-03-15 01:12:39 -0700</creation_ts>
          <short_desc>Limit XML declaration scan in text/html to the first 1024 bytes</short_desc>
          <delta_ts>2023-09-27 14:48:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>d</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1739323</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2021-03-15 01:12:39 -0700</bug_when>
    <thetext>Steps to reproduce:

1. Load https://hsivonen.com/test/moz/xml-decl/kilobyte-plus-one-after.htm

Expected results:

Expected the character after &quot;Test: &quot; not to be ж. I.e. expected the XML declaration in text/html not take effect when its terminating greater-than sign is not within the first 1024 bytes.

Actual results:

The XML declaration syntax takes effect for character encoding indicating that the greater-than sign was scanned for past the first 1024 bytes.
 
Additional information:

Spec pull request: https://github.com/whatwg/html/pull/1752</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742185</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-22 04:37:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/75685333&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757500</commentid>
    <comment_count>2</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2021-05-06 10:44:21 -0700</bug_when>
    <thetext>The spec PR has been updated to no longer have this limit; I suggest closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980350</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-26 17:29:13 -0700</bug_when>
    <thetext>All browsers (Safari 17, Chrome Canary 119 and Firefox Nightly 120) all render the test case same.

Also Comment 02 suggests, we can close this?

@Anne - any input?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>