<?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>8767</bug_id>
          
          <creation_ts>2010-01-16 10:14:56 +0000</creation_ts>
          <short_desc>&lt;svg&gt;&lt;font&gt;x&lt;/font&gt;y&lt;/svg&gt;z is not parsed as intended.  the in body insertion mode processes &lt;/font&gt; as HTML formatting element, not as a foreign element&apos;s tag.</short_desc>
          <delta_ts>2010-10-04 14:46:29 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inforeign</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          <blocked>8966</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</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>31083</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-01-16 10:14:56 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inforeign

Comment:
&lt;svg&gt;&lt;font&gt;x&lt;/font&gt;y&lt;/svg&gt;z is not parsed as intended.	the in body insertion
mode processes &lt;/font&gt; as HTML formatting element, not as a foreign element&apos;s
tag.

Posted from: 220.210.139.236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31886</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-13 10:27:58 +0000</bug_when>
    <thetext>Hm, yes, same happens with &lt;/a&gt;. I think the solution is to factor out the processing for &quot;any other end tag&quot; in the in-body insertion mode, and then in the in-foreign-content insertion mode, change &quot;An end tag&quot; to be &quot;An end tag,  if the current node is an element in the HTML namespace.&quot; and add a new entry for &quot;An end tag&quot; that calls the factored out algorithm. Does that make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32316</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-17 23:52:46 +0000</bug_when>
    <thetext>Upon further consideration, I think the right thing to do is to add the following as an entry in the &quot;in foreign content&quot; list:

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

Run these steps:

 1. Let /node/ be the current node.

 2. Loop: If /node/ has the same tag name as the end tag token, pop elements up to /node/ and abort. If /node/ isn&apos;t the current node, then this is a parse error.

 3. Otherwise, let /node/ be the previous element in the stack.

 4. If /node/ is in the HTML namespace, treat the token as per 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.

 5. Return to the &quot;loop&quot; step.


Also, change the current &quot;An end tag&quot; entry to be &quot;Any other end tag&quot;.


Any opinions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32633</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-02-25 02:10:14 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r4803.
Check-in comment: Handle missing foreign content end tags and SVG &lt;/font&gt; and &lt;/a&gt; end tags in foreign content.
http://html5.org/tools/web-apps-tracker?from=4802&amp;to=4803
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32634</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-25 02:20:20 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given above
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>