<?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>40385</bug_id>
          
          <creation_ts>2010-06-09 12:46:02 -0700</creation_ts>
          <short_desc>Fix fast/parser/hex-entities-length.html for HTML5 parser</short_desc>
          <delta_ts>2010-06-09 15:05:40 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>39259</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Gentilcore">tonyg</reporter>
          <assigned_to name="Tony Gentilcore">tonyg</assigned_to>
          <cc>abarth</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235947</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2010-06-09 12:46:02 -0700</bug_when>
    <thetext>Fix fast/parser/hex-entities-length.html for HTML5 parser</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235951</commentid>
    <comment_count>1</comment_count>
      <attachid>58281</attachid>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2010-06-09 12:56:02 -0700</bug_when>
    <thetext>Created attachment 58281
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235960</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2010-06-09 13:07:55 -0700</bug_when>
    <thetext>Minefield passes this test, and it appears that if the &quot;Preprocessing the input stream&quot; spec were strictly followed it could not pass the test.

Also, I poked around at the minefield implementation and found where these character ranges are replaced for entities (in handleNcrValue). But can&apos;t find anywhere where they are replaced in the input stream itself (they are just passed to emitOrAppendTwo). Links:
http://mxr.mozilla.org/mozilla-central/source/parser/html/nsHtml5Tokenizer.cpp
http://mxr.mozilla.org/mozilla-central/source/parser/html/nsHtml5StreamParser.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236025</commentid>
    <comment_count>3</comment_count>
      <attachid>58281</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-06-09 14:54:49 -0700</bug_when>
    <thetext>Comment on attachment 58281
Patch

Yep.  This will fix a bunch of tests, actually.

Can you email public-html with this feedback on the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236033</commentid>
    <comment_count>4</comment_count>
      <attachid>58281</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-06-09 15:05:33 -0700</bug_when>
    <thetext>Comment on attachment 58281
Patch

Clearing flags on attachment: 58281

Committed r60916: &lt;http://trac.webkit.org/changeset/60916&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236034</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-06-09 15:05:40 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58281</attachid>
            <date>2010-06-09 12:56:02 -0700</date>
            <delta_ts>2010-06-09 15:05:33 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-40385-20100609125600.patch</filename>
            <type>text/plain</type>
            <size>2046</size>
            <attacher name="Tony Gentilcore">tonyg</attacher>
            
              <data encoding="base64">ZGlmZiAtLWd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VyIG9mIHNwZWNpZmljIGNoYXJhY3RlciB2YWx1ZXMgYXJlIHBhcnNlIGVycm9ycyBhbmQg
c2hvdWxkIGJlIHJlcGxhY2VkCisgICAgICAgICAgICAgICAgICAgIC8vIGJ5IHRoZSByZXBsYWNl
bWVudCBjaGFyYWN0ZXIuIFdlIHN1c3BlY3QgdGhpcyBpcyBhIHByb2JsZW0gd2l0aCB0aGUgc3Bl
YyBhcyBkb2luZworICAgICAgICAgICAgICAgICAgICAvLyB0aGF0IGZpbHRlcmluZyBicmVha3Mg
c3Vycm9nYXRlIHBhaXIgaGFuZGxpbmcgYW5kIGNhdXNlcyB1cyBub3QgdG8gbWF0Y2ggTWluZWZp
ZWxkLgorICAgICAgICAgICAgICAgICAgICBpZiAobV9uZXh0SW5wdXRDaGFyYWN0ZXIgPT0gJ1ww
JykKICAgICAgICAgICAgICAgICAgICAgICAgIG1fbmV4dElucHV0Q2hhcmFjdGVyID0gMHhGRkZE
OwogICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>