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

Re: [whatwg] main element parsing behaviour

From: Jirka Kosek <jirka@kosek.cz>
Date: Wed, 07 Nov 2012 12:55:46 +0100
Message-ID: <509A4C42.2000802@kosek.cz>
To: Simon Pieters <simonp@opera.com>
Cc: whatwg <whatwg@whatwg.org>, Steve Faulkner <faulkner.steve@gmail.com>
On 7.11.2012 12:46, Simon Pieters wrote:

> I'm not convinced that we should freeze the parser now just because we
> have reached interop. I think not changing the parser here makes <main> 
> (and other future elements; whatever we do here sets a precedent for
> future elements) inconsistent with the rest of HTML. In the long term,
> having <main> and <aside> parse differently just because we didn't want
> to change the behavior from 2012-era browsers will seem silly. Moreover,
> it will complicate the already complicated rules about when </p> may be
> omitted (in terms of how people think of the rule), which means that we
> might have to say that </p> is always required.

Changing parser each time new element is added is really evil idea and
sign of a bad design.

Parsing algorithm should be either not touched at all, or it should be
promptly changed to treat all unknown elements in other way if the
current treatment of unknown elements is not suitable for some reason.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
Received on Wednesday, 7 November 2012 11:56:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT