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.
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.
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