Igor Minar
unread,Nov 12, 2014, 5:52:49 PM11/12/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Matthew McNulty, Rob Eisenberg, polym...@googlegroups.com, christop...@me.com
It's not quite that simple but I think that both of you are right.
In an ideal case, the custom element should be indistinguishable from a native element.
The problems start when frameworks and libraries make assumptions about DOM that were true before custom elements, but are no longer valid now.
For example, in the past creating an element could have been done without worrying about any side effects because most of the html elements are lightweight. With custom elements, nobody knows what happens when an element is instantiated and bad things might happen if the framework creates an element just for bookkeeping purposes, creates it too early, pools elements or does other things where the were harmless with native elements, but with custom elements could result in bad side-effects.
Another issue are assumptions about behavior of global and boolean attributes in DOM. Something that was not an issue before custom elements, but as we've already seen is an issue now.
The data-binding aspect of interop is a completely different story and just as before the issue is that in the past it was sufficient to bind to attributes, but with custom elements you quickly start hitting walls if you go down this path.
I expect that if they haven't already, sooner or later Ember will come across similar issues as those that Angular came across already.
\i