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

[whatwg] Giving the <body> tag a new meaning.

From: Bjartur Thorlacius <svartman95@gmail.com>
Date: Tue, 1 Mar 2011 20:48:27 +0000
Message-ID: <AANLkTimXXeHkUJpbg2ymsQ2DvWt1=_v93voetpzzgPi1@mail.gmail.com>
On 3/1/11, usuario <soyhobo at gmail.com> wrote:
>> Why not propose a better definition then?
> Because than wouldn't likely solve the semantic issue (if we can call it an
> issue).
> I am not an html expert, it is even hard to me figure even what i propose.
> If a tell it, is because belive on it. But if you like the idea, i can try
> make it more solid.
Thing is, that <body> is automatically opened for text nodes that the parser
doesn't recognize as being in head (either per DTD or hard coded element
names) and, IIRC, for any nodes after head ends. Putting text after </head>
and before <body> will thusly result in said text being parsed as in body
and the <body> tag getting ignored, as bodys can't be nested.

As a result, everything must be in either head or body, and potentially after
the body. It might be feasible to add additional elements after the body, if
their content belongs neither with head's metadata nor body's linear main
Received on Tuesday, 1 March 2011 12:48:27 UTC

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