Bugzilla – Bug 545
Avoid switching to foreign content if you're already in it. Oops. (credit: jg)
Last modified: 2009-11-23 17:17:27 CET
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>