<?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>10118</bug_id>
          
          <creation_ts>2010-07-09 05:17:16 +0000</creation_ts>
          <short_desc>in foreign content &quot;current node is not an element in the HTML namespace&quot; algorithm is wrong</short_desc>
          <delta_ts>2010-10-22 10:32:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9580</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#scriptForeignEndTag</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>eric</cc>
    
    <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36707</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-07-09 05:17:16 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#scriptForeignEndTag

Comment:
in foreign content &quot;current node is not an element in the HTML namespace&quot;
algorithm is wrong

Posted from: 32.174.15.54</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36708</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel">eric</who>
    <bug_when>2010-07-09 05:20:04 +0000</bug_when>
    <thetext>Testcase: &quot;&lt;svg&gt;&lt;/table&gt;&quot;

Algorithm per the spec:

An end tag, if the current node is not an element in the HTML namespace.

Run these steps:

1. Initialize node to be the current node (the bottommost node of the stack).

2. If node is not an element with the same tag name as the token, then this is a parse error.

3. Loop: If node has the same tag name as the token, pop elements from the stack of open elements until node has been popped from the stack, and then abort these steps.

4. Set node to the previous entry in the stack of open elements.

5. If node is an element in the HTML namespace, process the token using the rules for the secondary insertion mode. If, after doing so, the insertion mode is still &quot;in foreign content&quot;, but there is no element in scope that has a namespace other than the HTML namespace, switch the insertion mode to the secondary insertion mode.

6. Return to the step labeled loop.

It seems that step 2. should have an &quot;abort these steps&quot; after it.   Otherwise the steps will just walk off the bottom end of the stack looking for a &lt;table&gt; element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36711</commentid>
    <comment_count>2</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-07-09 06:05:19 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 9580 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>