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


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. <> wrote:
> On Thu, Sep 29, 2011 at 6:38 PM, Dominic Cooney <> 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