Skip to content

fix: typecheck source param before parsing - #113

Merged
brody2consult merged 1 commit into
xmldom:masterfrom
jesse-y:master
Aug 26, 2020
Merged

brody2consult merged 1 commit into
xmldom:masterfrom
jesse-y:master

Conversation

@jesse-y

@jesse-y jesse-y commented Aug 25, 2020 •

Copy link
Copy Markdown
Contributor

Updates DOMParser.parseFromString to also check that the source provided is a string. To prevent sax from throwing undefined errors when calling indexOf on the source.

Adds unit tests to test/parse/simple.vows.js to cover this edge case.

Resolves #98

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite-loop error

3 participants