Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
28 stars 12 forks source link

Cannot assume first stylesheet in document is in document.head. #21

Closed theengineear closed 5 years ago

theengineear commented 5 years ago

We infrequently get errors when an extension of some sort puts stylesheets outside the document head. We could protect against this by limiting our search to the document head in x-style.

Here's the error we hit:

Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': tables:1
The node before which the new node is to be inserted is not a child of this node.
    at https://elements.prod.netflix.net/@netflix/x-elements/x-app/x-style.js:161:15
theengineear commented 5 years ago

Wrong repo! Meant x-elements (with an "s")