I have made this Gist to show the issue but essentially I have found that using shadowRoot.innerHtml = '...'
works but using shadowRoot.appendHtml('...')
doesn't work, it causes the console warning Removing disallowed element <STYLE>
which I can't explain. Anyone know if this is simple the way it is meant to be or is it specific to Dart?
Asked
Active
Viewed 381 times
1

Daniel Robinson
- 13,806
- 18
- 64
- 112
1 Answers
1
Removing disallowed element
indicates that you need a NodeValidator.
shadowRoot.append(
new document.body.createFragment('....'),
validator: new NodeValidationBuilder().allow(...);

Günter Zöchbauer
- 623,577
- 216
- 2,003
- 1,567