stevefaulkner / HTML5accessibility

HTML5accessibility.com web site
356 stars 84 forks source link

Clone the style element before using appendChild #91

Closed hoyce closed 4 years ago

hoyce commented 4 years ago

Due to the fact that the appendChild moves the given element (https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild ) we need to clone it first. If we don't clone it, the