[whatwg] Mistyping of title end tag causes white page

On Sat, 2010-02-20 at 15:23 -0800, Adam Barth wrote:

> I think the way WebKit handles this case is by re-parsing if the title
> tag eats the whole document.
> 
> Adam
> 
> 
> On Sat, Feb 20, 2010 at 1:59 PM, Nikita Popov <privat at ni-po.com> wrote:
> > I noticed, that mistyping the ending title tag causes a white page and a
> > title containing the whole source of the page (from the starting title tag
> > on) in firefox3.6 with enabled HTML5 Parsing Algorithm.
> >
> > As I haven't read the the HTML5 Parsing Algorithm section, I don't know
> > whether this is a misimplementation or is defined this way in the algorithm.
> >
> > Obviously this cannot be the expected behavior. The second <title> tag
> > should be interpreted as a </title> tag.
> >
> > Nikita Popov
> >


I think a white page is the best way really. To do otherwise would just
encourage really sloppy coding practices. If a white page is displayed,
it's pretty obvious fairly quickly that there is a major problem.

Thanks,
Ash
http://www.ashleysheridan.co.uk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100220/4c0364db/attachment.htm>

Received on Saturday, 20 February 2010 15:25:47 UTC