- From: divya manian <divya.manian@gmail.com>
- Date: Sun, 28 Mar 2010 09:46:41 -0700
Hi everyone I am trying to understand when an element can have flow content defined in the spec [1]. The general rule states: "should have either at least one descendant text node that is not inter-element whitespace, or at least one descendant element node that is embedded content" It also states "Most elements that are used in the body of documents and applications are categorized as flow content." and gives a list of elements. I was curious to know what elements are not categorized so and found legend element[2] did not figure in the list. It is listed under phrasing content like i, strong, label and em (but all these are flow elements as well). Is there a reason why legend does not figure on that list? Also, since the spec states most elements are categorized as flow content, would it not be better to state what elements are NOT flow content? Regards, Divya [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#flow-content-0 [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-legend-element
Received on Sunday, 28 March 2010 09:46:41 UTC