When I try my Web Component code with platform.js, Firefox just crashes. 
 I've identified two problem areas but, unfortunately, I can't reduce them 
to simple test cases.


1. A near-empty template:

The first problem is a template that only has a style.  When I use this 
template to construct a shadow DOM and then append an 'img' element, 
Firefox crashes.  If I add an empty 'div' element to the template, Firefox 
does not crash.

See line 41 of 
https://github.com/alexmilowski/db-component/blob/master/db-component.xhtml

I tried isolating this issue but when I only had a single custom element 
with the same setup, it worked just fine in Firefox. So, there must be some 
combined effect that I'm missing.


2. The main element 'db-article' has a template to add a header.  When the 
template is cloned then appended to the Shadow DOM root, Firefox crashes. 
 Since the root custom element has many children elements that are also 
custom elements, I suspect this has something to do with the "content" 
element in the template.  Of course, that is a complete guess.

Firefox crashes on line 159 of 
https://github.com/alexmilowski/db-component/blob/master/db-component.js

This issue is also hard to isolate as it is the whole document.  I'll try 
to make a simpler example of the crash later today.



The Web Component is a simple example of transliterating a XML document (a 
DocBook article) and it works quite well in Chrome.  If I remove the 
offending problems, it works reasonably well in Firefox.  Safari doesn't 
work at all due to the other issue I posted about.

--Alex Miłowski

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/6402c6a6-d124-4ca0-80c6-21337bd4ef6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to