Re: Custom tags over wire, was Re: HTMLElement.register--giving components tag names

On Sep 3, 2011, at 12:08 PM, Ian Hickson <ian@hixie.ch> wrote:

> On Fri, 2 Sep 2011, Anne van Kesteren wrote:
>> 
>> What we need is not a becomes="" attribute (that renames an element and 
>> therefore forgoes its semantics) but rather a way to get complete 
>> control over a semantic element and tweak aspects of it. Otherwise 
>> creating such controls is prohibitively expensive and only useful if you 
>> have vast resources.
> 
> Exactly. This is in fact how XBL works. This is why the widgets in the 
> HTML spec are defined in terms of bindings -- the idea is that authors can 
> then provide their own alternative bindings or inherit from them. We would 
> provide basic bindings that they can reuse in their inheritance chain, 
> e.g. so that they can override just the look of the button but get all the 
> interactive behaviour (accessibility roles, keyboard navigation, mouse 
> click reactions, etc) for free.
> 


Isn't that the domain of CSS?



> -- 
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
> 

Received on Saturday, 3 September 2011 23:56:25 UTC