W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] Why is the legend element not categorized as flow content?

From: divya manian <divya.manian@gmail.com>
Date: Mon, 29 Mar 2010 07:02:33 -0700
Message-ID: <40fb5ba21003290702h542a5248ib209077110114420@mail.gmail.com>
On Sun, Mar 28, 2010 at 8:40 PM, Ian Hickson <ian at hixie.ch> wrote:
> In what sense is it listed under phrasing content?

The content model for the legend is stated as phrasing content in the spec [1]

> It's just supposed to be a child of <fieldset>, so it doesn't have any
> category at all.

Thanks, the general rule [2] that is given in the spec seems to
include almost every known HTML4 element as flow content, but then,
legend somehow is not a flow content (even though it fulfills the
General Rule). I am trying to figure out if there is an easy way to
know which elements are flow or not other than referring to the spec
for each element before using.

Regards,
Divya


[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-legend-element
[2] "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"
http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#flow-content
Received on Monday, 29 March 2010 07:02:33 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC