NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 545 - Avoid switching to foreign content if you're already in it. Oops. (credit: jg)
Avoid switching to foreign content if you're already in it. Oops. (credit: jg)
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-27 14:27 CEST by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-05-27 14:27:37 CEST
Index: source
===================================================================
--- source	(revision 2958)
+++ source	(revision 2959)
@@ -68288,8 +68288,10 @@
     elements</span> and <span title="acknowledge self-closing
     flag">acknowledge the token's <i>self-closing flag</i></span>.</p>
 
-    <p>Otherwise, let the <span>secondary insertion mode</span> be the
-    current <span>insertion mode</span>, and then switch the
+    <p>Otherwise, if the <span>insertion mode</span> is not already
+    "<span title="insertion mode: in foreign content">in foreign
+    content</span>", let the <span>secondary insertion mode</span> be
+    the current <span>insertion mode</span>, and then switch the
     <span>insertion mode</span> to "<span title="insertion mode: in
     foreign content">in foreign content</span>".</p>
 
@@ -68316,8 +68318,10 @@
     elements</span> and <span title="acknowledge self-closing
     flag">acknowledge the token's <i>self-closing flag</i></span>.</p>
 
-    <p>Otherwise, let the <span>secondary insertion mode</span> be the
-    current <span>insertion mode</span>, and then switch the
+    <p>Otherwise, if the <span>insertion mode</span> is not already
+    "<span title="insertion mode: in foreign content">in foreign
+    content</span>", let the <span>secondary insertion mode</span> be
+    the current <span>insertion mode</span>, and then switch the
     <span>insertion mode</span> to "<span title="insertion mode: in
     foreign content">in foreign content</span>".</p>