[dart:html] [template element] remove <template> APIs from Element #11853
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-not-planned
Closed as we don't intend to take action on the reported issue
library-html
Right now we place all <template> APIs[1] on Element. There are two issues:
* <td template> must be supported. Only certain elements are allowed to be "semantic templates", and this is intended for backwards compatibility with older HTML5 parsers. We should mixin the APIs only to the element subclasses that need them, rather than being on all Elements.
* ideally, the polyfill could create a real TemplateElement instead of UnknownElement. In theory, we could fix this by tweaking how dart2js does the "get type name" operation, by having it use the tagName or localName to resolve the UnknownElement.
[1]: https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#template-element, but also APIs proposed in https://github.com/Polymer/mdv/blob/master/src/template_element.js
The text was updated successfully, but these errors were encountered: