Closed gushogg-blake closed 1 year ago
I can confirm this issue, and it can be tested on the Tree-sitter "play-ground" page, when set to HTML.
This works: <xml-test12></xml-text12>
This makes it fail: <xml-test123></xml-text123>
The fail does not make a soft error, as if you wrote something wrong, but instead it crashes.
The error message can also be seen in the console on the "play-ground" page with dev tools, since that also uses the WASM files.
It seems the input length is hardcoded somewhere.
cannot replicate the first one - maybe it's a wasm issue
for the second, text != test
for people arriving at this issue because they're having errors parsing xml using this tree-sitter, you likely want to switch to https://github.com/ObserverOfTime/tree-sitter-xml for parsing xml
Custom tag names cause an error if the name is longer than 10 chars, e.g.
<foobar1234/>
is fine but<foobar12345/>
throws an error.I've just been looking through the source and noticed that 10 chars is the longest tag name listed in https://github.com/tree-sitter/tree-sitter-html/blob/master/src/tag.h - could this be related somehow or just coincidence?
Here's the error:
Cheers!
Gus