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 27332 - Contexts in which this element can be used: not where flow content is expected?
Summary: Contexts in which this element can be used: not where flow content is expected?
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#the-scr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-15 00:40 UTC by contributor
Modified: 2016-03-28 13:29 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2014-11-15 00:40:32 UTC
Specification: https://html.spec.whatwg.org/multipage/scripting.html
Multipage: https://html.spec.whatwg.org/multipage/#the-script-element
Complete: https://html.spec.whatwg.org/#the-script-element
Referrer: https://html.spec.whatwg.org/multipage/semantics.html

Comment:
Contexts in which this element can be used: not where flow content is
expected?

Posted from: 77.7.191.235 by senol.veli@gmail.com
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2014-11-19 22:07:45 UTC
Phrasing content is expected anywhere that flow content is expected.
Comment 2 senol.veli 2014-12-07 15:40:31 UTC
One fact is confusing at this point:

Wheter this element should only be categorized as phrasing content, so one knows you can use it everywhere where phrasing content is expected. This information is enough to know, one can use it also where flow content is expected, since nearly all elements that is phrasing content can be used *anywhere* (restrictions left now aside).
But if you categorize one element as Flow and phrasing content, it is confusing that it is not mentioned "allowed tu use where flow content is expected", because -and your answer above is also not sufficient-:

When someone is to use this element and wants to know if, he is allowed to use it in e.g. a p-Element -of which the content model is phrasing content model is phrasing content, the author will be confused, because, may be he is not able to determine if the script element in this using case is categorzed as flow and phrasing or just flow.

A help could be to say if an element is categorized as flow and phrasing you can use it in any case where phrasing content is allowed.

Can you catch my idia or is it idiocy?


best regards
Comment 3 Ian 'Hixie' Hickson 2014-12-19 23:12:02 UTC
The spec always explicitly says that an element is both Flow and Phrasing when it is Phrasing. This should be true of all Phrasing elements.

An element has all categories it has. Saying that an element accepts elements with category 2 doesn't mean it doesn't accept elements with both categories 1 and 2. I don't know how to make that clearer though.
Comment 4 Anne 2016-03-28 13:29:18 UTC
https://html.spec.whatwg.org/multipage/dom.html#concept-element-contexts already explains this in a note.