You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have to use the Polymer.dom() to cover both Shadow and Shady DOM, we're finding it hard to programmatically get and set element content. We'd like to be able to get and set both Polymer.dom(element).innerHTML and Polymer.dom(element).textContent. From what I can tell, neither of those are defined by the result of Polymer.dom().
While we can try to roll our own Shadow/Shady implementations of innerHTML and textContent by looking at Polymer.dom()'s .children or .childNodes properties, it seems much better to share reliable, platform-supported helpers for that.
The text was updated successfully, but these errors were encountered:
innerHTML and textContent are really missing. We made some custom code which should lead to the same result - but we're not sure if it's the best/fastest approach. So we would appreciate an official solution as well.
Now that we have to use the Polymer.dom() to cover both Shadow and Shady DOM, we're finding it hard to programmatically get and set element content. We'd like to be able to get and set both
Polymer.dom(element).innerHTML
andPolymer.dom(element).textContent
. From what I can tell, neither of those are defined by the result of Polymer.dom().While we can try to roll our own Shadow/Shady implementations of innerHTML and textContent by looking at Polymer.dom()'s
.children
or.childNodes
properties, it seems much better to share reliable, platform-supported helpers for that.The text was updated successfully, but these errors were encountered: