-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Currently you can't setup a custom setter or watch() a property like tabIndex, even if tabIndex is defined in the widget itself, trying to override the one in the HTMLElement base class.
On Chrome, the custom setter will never be called because the DOMNode object itself, produced by document.createElement(), will have it's own tabIndex property that overrides the one on our prototype.
On IE and FF we hit an issue that dcl will eventually work around.
I'm actually not sure if we can support native properties or not. What I want is for mySlider.tabIndex="3" to set the tab index of the slider's handles, but to leave the root node without a tabindex setting. But DOMNodes have a magic mapping between properties and attributes, so perhaps it isn't possible.
If worse comes to worse we'll have to use a different name, like widgetTabIndex.