This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Phrasing content is expected anywhere that flow content is expected.
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
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.
https://html.spec.whatwg.org/multipage/dom.html#concept-element-contexts already explains this in a note.