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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22322</bug_id>
          
          <creation_ts>2013-06-10 22:47:12 +0000</creation_ts>
          <short_desc>Where possible, replace parts of the parser that say &quot;act as is a ... tag had been seen&quot; with explicit requirements to act appropriately (e.g. pop the stack, add elements, etc)</short_desc>
          <delta_ts>2013-07-03 14:19:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#tree-construction</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>17930</dependson>
          <blocked>21308</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>adamk</cc>
    
    <cc>adrianba</cc>
    
    <cc>annevk</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>james</cc>
    
    <cc>mike</cc>
    
    <cc>rafaelw</cc>
    
    <cc>tross</cc>
    
    <cc>w3c</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89034</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-10 22:47:12 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#tree-construction
Complete: http://www.whatwg.org/c#tree-construction
Referrer: 

Comment:
Where possible, replace parts of the parser that say &quot;act as is a ... tag had
been seen&quot; with explicit requirements to act appropriately (e.g. pop the
stack, add elements, etc)

Posted from: 2620:0:1000:147c:e6ce:8fff:fe07:8094 by ian@hixie.ch
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1521.3 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89035</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-10 22:50:11 +0000</bug_when>
    <thetext>I don&apos;t know how plausible this is, but it would make the parser easier to understand, which would then make solving the problems with namespaces more tractable. Any opinions?

Before doing this throughout I&apos;d try to do it in a few places to make sure it was itself tractable and to make sure we were all on the same page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89145</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-06-12 06:14:12 +0000</bug_when>
    <thetext>Sounds okay to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89150</commentid>
    <comment_count>3</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2013-06-12 07:29:45 +0000</bug_when>
    <thetext>Seems superficially OK. The V.nu parser tends to inline &quot;as if&quot; stuff anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90014</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-28 23:05:39 +0000</bug_when>
    <thetext>The main idea here would be to remove the parser&apos;s assumption in the html section that we&apos;re not in a foreign section (or that if we are, that the fake tokens it&apos;s generating are going to match html nodes, not foreign ones). Ideally, this will then fix bug 21308, or at least make it much more obvious what needs fixing to address the problems there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90078</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-01 19:24:39 +0000</bug_when>
    <thetext>Note to self: I&apos;m not inlining the AAA into the &lt;a&gt; start tag step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90079</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-01 19:25:12 +0000</bug_when>
    <thetext>Same for &lt;nobr&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90083</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-01 20:48:38 +0000</bug_when>
    <thetext>And not inlining &lt;/script&gt; in foreign content either. But that one seems safe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90085</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-07-01 21:19:56 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8001.
Check-in comment: Change the HTML parser from using &apos;act as if&apos; tokens to inlining the behaviour. The only normative changes should be the number of &apos;parse errors&apos; detected in certain edge cases. Three occurrences of &apos;act as if&apos; remain. This should make it a lot easier to fix the spec&apos;s namespace issues.
http://html5.org/tools/web-apps-tracker?from=8000&amp;to=8001</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90087</commentid>
    <comment_count>9</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-07-01 21:49:28 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8002.
Check-in comment: Remove the remaining &apos;act as if&apos; cases. This _should_ be an entirely editorial fix, but reviews are definitely encouraged...
http://html5.org/tools/web-apps-tracker?from=8001&amp;to=8002</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90222</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-03 14:19:52 +0000</bug_when>
    <thetext>Let me know if I missed anything!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>