This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25555 - Shouldn't <ruby> also allow intermixed script-supporting elements?
Summary: Shouldn't <ruby> also allow intermixed script-supporting elements?
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: blocked on dependencies
Keywords:
Depends on: 26189
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-05 17:45 UTC by contributor
Modified: 2017-07-21 17:43 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2014-05-05 17:45:16 UTC
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't <ruby> 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)
Comment 1 Ian 'Hixie' Hickson 2014-05-05 21:27:05 UTC
Isn't the content model complicated enough as it is?
Comment 2 Simon Pieters 2014-05-06 21:08:31 UTC
Authors > Hixie

It's bad for authors that you can put script/template anywhere in a <table> but not anywhere in a <ruby>.
Comment 3 Ian 'Hixie' Hickson 2014-05-13 23:24:04 UTC
If we're going to make it more consistent, I'm far more tempted to do so by removing the ability to put <script> in <table> than the other way around.

But I'm not convinced these need to be consistent.

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

What's the use case for ever putting <script> or <template> in <ruby> in a way that isn't already allowed? I don't understand what you would do. Note that <template> in tables makes a lot more sense, since there you might not know in advance what data you're going to be injecting.
Comment 4 Simon Pieters 2014-07-30 06:12:29 UTC
I don'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're allowed anywhere (modulo parser behavior).
Comment 5 Ian 'Hixie' Hickson 2014-09-08 21:56:29 UTC
It's definitely easier to understand "you can put stuff anywhere and it's conforming", but being easy to understand isn't the goal of content model conformance criteria. The goal is to try to catch unintended mistakes.
Comment 6 Simon Pieters 2014-09-09 12:30:27 UTC
Yeah but <script> in <ruby> doesn't seem like an unintended mistake to me. Can you give an example of a page that has <script> somewhere that is a mistake (and isn't weirdly parsed)?
Comment 7 Ian 'Hixie' Hickson 2014-09-09 15:39:07 UTC
<script> is probably reasonable, I was thinking more about <template>, as a replacement for other elements. I guess if we're just talking about putting script elements in ruby then that's ok...
Comment 8 Michael[tm] Smith 2017-07-21 17:43:55 UTC
Let’s re-raise this in the GitHub issue tracker if necessary.