W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] Handling <title> inside <body>

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Wed, 12 Nov 2008 08:51:34 -0800
Message-ID: <c9e12660811120851o4eaff773v892840d56769be6d@mail.gmail.com>
On Tue, Nov 11, 2008 at 11:21 PM, Ian Hickson <ian at hixie.ch> wrote:
> On Tue, 11 Nov 2008, Garrett Smith wrote:
>> >
>> > Unfortunately, we have little choice in the matter. Scripting and XML
>> > both allow you to unambiguously create highly non-conforming DOMs,
>> > e.g. with <title> elements as the root element and <html> elements as
>> > children of <input> elements. The renderer has to deal with all such
>> > DOMs.
>>
>> What does XML has to do with any of this?
>
> XML can denote arbitrarily nested DOMs.
>
>
>> A script that adds an HTML element to a INPUT element should cause an
>> hierarchy exception to be raised.
>
> No, it shouldn't.
>

DOM 1 seems to disagree with that.

>
>> | Since user agents may vary in how they handle error conditions,
>> | authors and users must not rely on specific error recovery behavior.
>>
>> http://www.w3.org/TR/REC-html40/appendix/notes.html#notes-invalid-docs
>
> This was one of the biggest mistakes in HTML4, and HTML5 does not make
> that mistake again.
>

Why?

> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>
Received on Wednesday, 12 November 2008 08:51:34 UTC

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