-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
sourceLocations is broken when tags are implied #80
Conversation
htmlparser2 has had a code change that looks to correct the issue there (fb55/htmlparser2#910), but the problem is still seen here (as the same indices are seen twice). |
Mostly works, but the start of the |
Thanks, @fb55; unfortunately that change doesn't seem to make a difference... |
The start of a closing tag is now set to the |
Unfortunately, CI isn't running on this PR yet, but the test fails on the implied start tag for the
with and without the change. (18 being the expected value.) Edit: Debugging it, the |
Good find! Turns out the index was overwritten for implied opening tags. I've opened fb55/htmlparser2#917 with a fix. |
@fb55 Thanks, the test's now passing. 😃 |
I'll mark this as ready when you're able to do a new patch release @fb55. |
I just published |
That's great, thanks! |
Marking this as ready as there's a stable htmlparser release that's working. Had a quick go at using the |
Thanks for flagging! I published |
Thanks, @fb55. It's now passing, and it is definitely simpler. ✨ |
@thewilkybarkid @fb55 Thanks guys, released in version 0.10.1 |
This is deliberately left as a draft as it should demonstrate a bug as a result of fb55/htmlparser2#896, which causes parcel-bundler/parcel#6672.
I don't think it's possible to work around it here, but there will probably need to be code changes when the htmlparser2 bug is resolved.