<?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>25555</bug_id>
          
          <creation_ts>2014-05-05 17:45:16 +0000</creation_ts>
          <short_desc>Shouldn&apos;t &lt;ruby&gt; also allow intermixed script-supporting elements?</short_desc>
          <delta_ts>2017-07-21 17:43:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=25552</see_also>
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-ruby-element</bug_file_loc>
          <status_whiteboard>blocked on dependencies</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>26189</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105057</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-05 17:45:16 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#the-ruby-element
Complete: http://www.whatwg.org/c#the-ruby-element
Referrer: 

Comment:
Shouldn&apos;t &lt;ruby&gt; also allow intermixed script-supporting elements?

Posted from: 2a00:801:e0:30:d9c4:c34f:b530:6023
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 OPR/21.0.1432.48 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105082</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-05 21:27:05 +0000</bug_when>
    <thetext>Isn&apos;t the content model complicated enough as it is?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105234</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-05-06 21:08:31 +0000</bug_when>
    <thetext>Authors &gt; Hixie

It&apos;s bad for authors that you can put script/template anywhere in a &lt;table&gt; but not anywhere in a &lt;ruby&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105929</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-13 23:24:04 +0000</bug_when>
    <thetext>If we&apos;re going to make it more consistent, I&apos;m far more tempted to do so by removing the ability to put &lt;script&gt; in &lt;table&gt; than the other way around.

But I&apos;m not convinced these need to be consistent.

Note that a complicated content model is also bad for authors.

What&apos;s the use case for ever putting &lt;script&gt; or &lt;template&gt; in &lt;ruby&gt; in a way that isn&apos;t already allowed? I don&apos;t understand what you would do. Note that &lt;template&gt; in tables makes a lot more sense, since there you might not know in advance what data you&apos;re going to be injecting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109553</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-07-30 06:12:29 +0000</bug_when>
    <thetext>I don&apos;t have a use case for script/template in ruby. I just expected the spec to more consistently allow script/template anywhere where the parser can put them, and thought it would be easier for authors to understand that they&apos;re allowed anywhere (modulo parser behavior).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111201</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-08 21:56:29 +0000</bug_when>
    <thetext>It&apos;s definitely easier to understand &quot;you can put stuff anywhere and it&apos;s conforming&quot;, but being easy to understand isn&apos;t the goal of content model conformance criteria. The goal is to try to catch unintended mistakes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111259</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-09 12:30:27 +0000</bug_when>
    <thetext>Yeah but &lt;script&gt; in &lt;ruby&gt; doesn&apos;t seem like an unintended mistake to me. Can you give an example of a page that has &lt;script&gt; somewhere that is a mistake (and isn&apos;t weirdly parsed)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111271</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-09 15:39:07 +0000</bug_when>
    <thetext>&lt;script&gt; is probably reasonable, I was thinking more about &lt;template&gt;, as a replacement for other elements. I guess if we&apos;re just talking about putting script elements in ruby then that&apos;s ok...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128771</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2017-07-21 17:43:55 +0000</bug_when>
    <thetext>Let’s re-raise this in the GitHub issue tracker if necessary.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>