<?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>26426</bug_id>
          
          <creation_ts>2014-07-24 10:23:07 +0000</creation_ts>
          <short_desc>rb causing a parser error if current node is not ruby could break old content</short_desc>
          <delta_ts>2016-10-25 09:27:05 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>whatwg-resolved</status_whiteboard>
          <keywords></keywords>
          <priority>P0</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Koji Ishii">kojiishi</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>annevk</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>travil</cc>
    
    <cc>VYV03354</cc>
    
    <cc>yuki.sekiguchi</cc>
          
          <qa_contact name="Robin Berjon">robin</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109244</commentid>
    <comment_count>0</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2014-07-24 10:23:07 +0000</bug_when>
    <thetext>Tree construction, The &quot;in body&quot; insertion mode &lt;http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody&gt; states that:

A start tag whose tag name is one of: &quot;rb&quot;, &quot;rp&quot;, &quot;rtc&quot;
If the stack of open elements has a ruby element in scope, then generate implied end tags. If the current node is not then a ruby element, this is a parse error.

This rule could break existing HTML + XHTML Ruby annotation content because they could use rbc tags:
&lt;ruby&gt;&lt;rbc&gt;&lt;rb&gt;base&lt;/rb&gt;&lt;/rbc&gt;...

Such content will be a parse error because rb is not a direct child of ruby.

Should we loosen the rule to require rb being the direct child of ruby?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109246</commentid>
    <comment_count>1</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2014-07-24 11:02:41 +0000</bug_when>
    <thetext>I think
  * &lt;rb&gt; should only generate implied end tags for &lt;rb&gt;,&lt;rt&gt;,&lt;rtc&gt;,&lt;rp&gt;
  * &lt;rt&gt; should only generate implied end tags for &lt;rb&gt;,&lt;rt&gt;,&lt;rtc&gt;,&lt;rp&gt;
  * &lt;rtc&gt; should only generate implied end tags for &lt;rb&gt;,&lt;rt&gt;,&lt;rtc&gt;,&lt;rp&gt;
  * &lt;rp&gt; should not generate implied end tags for anything (bug 26424).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109310</commentid>
    <comment_count>2</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2014-07-26 12:40:45 +0000</bug_when>
    <thetext>Changing auto-closing rules doesn&apos;t help this. Because rbc is not defined in HTML5, we can&apos;t define its auto-closing rules.

In other words, I could say following fragments exist in the wild:

&lt;ruby&gt;&lt;any&gt;&lt;rb&gt;base&lt;/rb&gt;&lt;/any&gt;...&lt;/ruby&gt;

and the &lt;any&gt; is an undefined element. If this fragment is defined as a parser error, we&apos;re likely to break a lot of existing documents that follow XHTML Ruby Annotation spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109401</commentid>
    <comment_count>3</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2014-07-28 18:42:33 +0000</bug_when>
    <thetext>After some more tests, I confirmed that having &lt;rbc&gt; doesn&apos;t render as proper ruby even before the spec change, so I&apos;d put lower priority.

Gecko, after the spec change was implemented, starts showing this as a parser error in Source view because &lt;rb&gt; is now defined, as discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1042885</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121035</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-16 10:10:33 +0000</bug_when>
    <thetext>Agree that it would be good to have a spec change here, and raising priority after reviewing implementer feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126239</commentid>
    <comment_count>5</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2016-04-27 22:37:35 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Moved to Github issue: https://github.com/w3c/html/issues/291

To file additional issues please use the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>