W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: Behavior Attachment Redux, was Re: HTML element content models vs. components

From: Dominic Cooney <dominicc@google.com>
Date: Fri, 30 Sep 2011 11:05:30 +0900
Message-ID: <CAHnmYQ-GNNJ9cRZG_HKDycEdvBGozt5wXhvpiurBW7vu-TFwPw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Edward O'Connor" <eoconnor@apple.com>, public-webapps@w3.org

I understand <div> and <x-foo> are different in the respect of
automatically closing p-s.

Is this a serious problem? It seems like if you want the p to be
closed, you can write </p>; if you insist on getting the parser to
close it, you can use <div becomes="x-foo">.


On Fri, Sep 30, 2011 at 10:53 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Thu, Sep 29, 2011 at 6:38 PM, Dominic Cooney <dominicc@google.com> wrote:
>> So, to make this really explicit:
>> div’s default display is block, but x-div’s default display is inline.
>> Is there anything else that I missed?
> Not quite.  <p> has auto-closing behavior around several of the
> existing elements.  It does not auto-close for components, though.
> It has nothing to do with 'display' - it's an effect of parsing.
> ~TJ
Received on Friday, 30 September 2011 02:06:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:24 UTC