Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Prevent TypeError on <style> tags #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HitkoDev
Copy link

document.styleSheets contains both <link rel="stylesheet"> and <style> elements; since the later have href = null, it would throw a TypeError.

document.styleSheets contains both `<link rel="stylesheet">` and `<style>`  elements; since the later have `href = null`, it would throw a TypeError.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant