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

Replace iterating over Object.keys(NodeList) with NodeList.length #865

Merged
merged 5 commits into from Feb 18, 2024

Conversation

Ingramz
Copy link
Contributor

@Ingramz Ingramz commented Nov 22, 2023

This works around xmldom versions greater than 0.8.8 & up to 0.8.10 seemingly not supporting use of Object.keys on NodeList to iterate over currently existing keys.

It should be noted I have not investigated whether Object.keys(NodeList) is allowed per DOM specification and it could be that there exists a regression in xmldom. Track xmldom/xmldom#583 for relevant discussion.

Original patch from #835 (comment)

This seemingly fixes issues with xmldom versions greater than 0.8.8 & up to 0.8.10
@XhmikosR XhmikosR changed the title Replace iterating over Object.keys(NodeList) with NodeList.length Replace iterating over Object.keys(NodeList) with NodeList.length Nov 22, 2023
@XhmikosR
Copy link
Member

@Kreeg LGTY? It's weird that this caused all the issues but it should be fine, at least up until the xmldom devs respond to the issue.

@XhmikosR XhmikosR merged commit ef55f6b into svg-sprite:main Feb 18, 2024
8 checks passed
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.

None yet

2 participants