We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Given a comment like <!-- svelte-xyz -->, the parser will incorrectly include a trailing -- in the textContent of the comment.
<!-- svelte-xyz -->
--
https://github.com/capricorn86/happy-dom/blob/07448050a759d55f220abbfe85951e9da7c1157c/packages/happy-dom/src/xml-parser/XMLParser.ts#LL14C1-L27C104
To Reproduce Run MARKUP_REGEXP.exec("<!-- a-b -->"), third group will have a-b --
MARKUP_REGEXP.exec("<!-- a-b -->")
a-b --
Expected behavior The third group contains a-b
a-b
The text was updated successfully, but these errors were encountered:
capricorn86#916@patch: Handle comments with dash in text.
b1acb33
capricorn86#916@patch: Fixes issue in the XML parser where it failed …
63aa8c6
…to parse comments including dash characters (-).
7242417
Merge pull request #917 from gtm-nayan/master
84fc898
#916@patch: Handle comments with dash in text.
Thank you for your contribution @gtm-nayan! 🌟
Your fix has been released.
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v9.18.2
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Given a comment like
<!-- svelte-xyz -->
, the parser will incorrectly include a trailing--
in the textContent of the comment.https://github.com/capricorn86/happy-dom/blob/07448050a759d55f220abbfe85951e9da7c1157c/packages/happy-dom/src/xml-parser/XMLParser.ts#LL14C1-L27C104
To Reproduce
Run
MARKUP_REGEXP.exec("<!-- a-b -->")
, third group will havea-b --
Expected behavior
The third group contains
a-b
The text was updated successfully, but these errors were encountered: