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

abbr tag not parsed correctly #254

Closed
julienc91 opened this issue Oct 7, 2023 · 0 comments · Fixed by #255
Closed

abbr tag not parsed correctly #254

julienc91 opened this issue Oct 7, 2023 · 0 comments · Fixed by #255

Comments

@julienc91
Copy link

Hi,

A bug seems to be affecting the parsing of the abbr tag:

> const { parse } = require("node-html-parser")
> parse("<a>foo</a>").querySelector("a").innerText
'foo'
> parse("<abbr>foo</abbr>").querySelector("abbr").innerText
'\n'

I was able to reproduce this bug on Node 16.15 with versions 6.1.9 and 6.1.10 of the package. In 6.1.8, everything works as expected:

> parse("<abbr>foo</abbr>").querySelector("abbr").innerText
'foo'

I couldn't find other tags with a similar behaviour.

@julienc91 julienc91 mentioned this issue Oct 7, 2023
julienc91 added a commit to julienc91/caviardeul that referenced this issue Oct 7, 2023
julienc91 added a commit to julienc91/caviardeul that referenced this issue Oct 9, 2023
julienc91 added a commit to julienc91/caviardeul that referenced this issue Oct 9, 2023
taoqf added a commit that referenced this issue Oct 25, 2023
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 a pull request may close this issue.

1 participant