Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be less strict about what the tagName of a <style> tag must be #486

Merged
merged 1 commit into from
Apr 9, 2022

Conversation

MatthewHerbst
Copy link
Owner

Fixes #485

Currently we check to see if a node is a <style> tag by checking
if the node.tagName === 'STYLE'. However, it seems in some cases
it can be lowercase 'style' instead, and possibly some browsers
or users might make it something else. This change adds resiliency
to the check.

Currently we check to see if a node is a `<style>` tag by checking
if the `node.tagName === 'STYLE'`. However, it seems in some cases
it can be lowercase `'style'` instead, and possibly some browsers
or users might make it something else. This change adds resiliency
to the check.
@MatthewHerbst MatthewHerbst merged commit c95c868 into master Apr 9, 2022
@MatthewHerbst MatthewHerbst deleted the fix/less-strict-style-tagName-matching branch April 9, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<style> tags being treated as empty <link> tags
1 participant