When I use a preserved HTML attribute name as one of the Polymer Element attributes, e.g.
<polymer-element name="my-elem" noscript attributes="language">
<polymer-element name="my-elem" noscript attributes="lang">
<polymer-element name="my-elem" noscript attributes="title">
Internet Explorer 11 shows exception:
TypeError: Unable to get property 'title' of undefined or null reference TypeError: Unable to get property 'title' of undefined or null reference
at Function code (Function code:1:1)
at publishAttributes (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:18104)
at desugarBeforeChaining (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:19080)
at buildPrototype (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:18924)
at register (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:18749)
at _register (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:23549)
at go (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:21656)
at registerWhenReady (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:23342)
at d (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:12684)
at b (http://rawgithub.com/Polymer/polymer/master/polymer.js:32:12635)
I am not sure if this is a bug (perhaps using a reserved HTML attribute name is not a good practice), but somehow this does not raise an error in Chrome nor Firefox.
JsFiddle to reproduce the issue: http://jsfiddle.net/warpech/TJhWP/1/
When I use a preserved HTML attribute name as one of the Polymer Element attributes, e.g.
Internet Explorer 11 shows exception:
I am not sure if this is a bug (perhaps using a reserved HTML attribute name is not a good practice), but somehow this does not raise an error in Chrome nor Firefox.
JsFiddle to reproduce the issue: http://jsfiddle.net/warpech/TJhWP/1/