W3C home > Mailing lists > Public > public-html-diffs@w3.org > February 2010

hixie: Handle missing foreign content end tags and SVG </font> and </a> end tags in foreign content. (whatwg r4803)

From: poot <cvsmail@w3.org>
Date: Thu, 25 Feb 2010 11:11:18 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100225021119.BA4FD2BBEA@toro.w3.mag.keio.ac.jp>
hixie: Handle missing foreign content end tags and SVG </font> and </a>
end tags in foreign content. (whatwg r4803)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3850&r2=1.3851&f=h
http://html5.org/tools/web-apps-tracker?from=4802&to=4803

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3850
retrieving revision 1.3851
diff -u -d -r1.3850 -r1.3851
--- Overview.html	25 Feb 2010 01:55:08 -0000	1.3850
+++ Overview.html	25 Feb 2010 02:10:06 -0000	1.3851
@@ -57595,6 +57595,44 @@
 
    </dd>
 
+   <dt>An end tag, if the <a href="#current-node">current node</a> is not an element in the <a href="#html-namespace-0">HTML namespace</a>.</dt>
+
+   <dd>
+
+    <p>Run these steps:</p>
+
+    <ol><li><p>Initialize <var title="">node</var> to be the <a href="#current-node">current
+     node</a> (the bottommost node of the stack).</li>
+
+     <li><p>If <var title="">node</var> is not an element with the
+     same tag name as the token, then this is a <a href="#parse-error">parse
+     error</a>.</li>
+
+     <li><p><i>Loop</i>: If <var title="">node</var> has the same tag
+     name as the token, pop elements from the <a href="#stack-of-open-elements">stack of
+     open elements</a> until <var title="">node</var> has been
+     popped from the stack, and then abort these steps.</li>
+
+     <li><p>Set <var title="">node</var> to the previous entry in the
+     <a href="#stack-of-open-elements">stack of open elements</a>.</li>
+
+     <li>
+
+      <p>If <var title="">node</var> is an element in the <a href="#html-namespace-0">HTML
+      namespace</a>, process the token <a href="#using-the-rules-for">using the rules
+      for</a> the <a href="#secondary-insertion-mode">secondary insertion mode</a>. If, after
+      doing so, the <a href="#insertion-mode">insertion mode</a> is still "<a href="#parsing-main-inforeign" title="insertion mode: in foreign content">in foreign
+      content</a>", but there is no element <a href="#has-an-element-in-scope" title="has an
+      element in scope">in scope</a> that has a namespace other
+      than the <a href="#html-namespace-0">HTML namespace</a>, switch the <a href="#insertion-mode">insertion
+      mode</a> to the <a href="#secondary-insertion-mode">secondary insertion mode</a>.</p>
+
+     </li>
+
+     <li><p>Return to the step labeled <i>loop</i>.</li>
+
+    </ol></dd>
+
    <dt>A start tag whose tag name is neither "mglyph" nor "malignmark", if the <a href="#current-node">current node</a> is an <code title="">mi</code> element in the <a href="#mathml-namespace">MathML namespace</a>.</dt>
    <dt>A start tag whose tag name is neither "mglyph" nor "malignmark", if the <a href="#current-node">current node</a> is an <code title="">mo</code> element in the <a href="#mathml-namespace">MathML namespace</a>.</dt>
    <dt>A start tag whose tag name is neither "mglyph" nor "malignmark", if the <a href="#current-node">current node</a> is an <code title="">mn</code> element in the <a href="#mathml-namespace">MathML namespace</a>.</dt>
@@ -57605,7 +57643,7 @@
    <dt>A start tag, if the <a href="#current-node">current node</a> is a <code title="">desc</code> element in the <a href="#svg-namespace">SVG namespace</a>.</dt>
    <dt>A start tag, if the <a href="#current-node">current node</a> is a <code title="">title</code> element in the <a href="#svg-namespace">SVG namespace</a>.</dt>
    <dt>A start tag, if the <a href="#current-node">current node</a> is an element in the <a href="#html-namespace-0">HTML namespace</a>.</dt>
-   <dt>An end tag</dt>
+   <dt>Any other end tag</dt>
    <dd>
 
     <p>Process the token <a href="#using-the-rules-for">using the rules for</a> the
Received on Thursday, 25 February 2010 02:11:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:17 GMT