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

On 10/3/11 5:32 AM, Roland Steiner wrote:
> <button IS=MYWIDGET>
...

> Cons:
> - harder to implement: there's a window during parsing (before reading
> the button) where it's still an ordinary button, requiring binding to be
> added afterwards

I assume you meant "before setting the attribute"?  I think working 
around this in parsers is not a huge deal, honestly.  There are lots of 
other elements that have weird "set once" attributes and bizarre 
interactions with special-casing the element until all parser-created 
attributes are set already.

> - unclear what happens if a HTML element with intrinsic shadow DOM is
> assigned a CSS binding

How is this different from x-mywidget inheriting from that HTML element?

Other than that, the summary looks about right.

-Boris

Received on Sunday, 9 October 2011 05:28:16 UTC