ttiny/docviewjs

Move the XML stuff to custom elements

Opened this issue · 1 comments

Chrome 33 supports custom elements natively, for the rest fallback to Polymer or X-Tags (whichever works better). So get rid of the XML stuff and start using document.registerElement(). It should be integrated with class system so extending HTMLElement will register a new element automatically.

Only that document.registerElement requires the element name to have dash in it. I don't know what is wrong with the W3C guys, like they want to make their APIs shitty on purpose. It takes them 20 years to get on the right track and they make every effort to make things ugly and inconsistent and as useless as possible.