Re: HTMLElement.register--giving components tag names

On Tue, 30 Aug 2011, Dominic Cooney wrote:
> 
> I'm proposing we add something that lets script extend the set of tag 
> names, so there is less of a bright line between elements defined in the 
> HTML spec and elements defined in script. Something like:
> 
> HTMLElement.register('x-contacts', ContactPicker);

What's the fallback behaviour for when script is disabled?

I think the XBL approach is far superior here -- have authors use existing 
elements, and use XBL to augment them. For example, if you want the user 
to select a country from a map, you can use a <select> with a list of 
countries in <option> elements in the markup, but then use CSS/XBL to bind 
that <select> to a "component" that instead makes the <select> look like a 
map, with all the interactivity that implies.

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

Received on Saturday, 3 September 2011 19:06:28 UTC