Open paaspaas00 opened 1 week ago
Side note, just wondering, is it worth to develop our own XML parsing lib? Maybe it's better to use an existing, well-mantained FOSS one?
Personally speaking: Yeah, I think it’d probably be better to switch to either Expat or libxml2. But also personally it’s not enough of a priority for me that I’d likely to make time any time soon to write up a patch for it.
@paaspaas00 Might it be enough of a priority for you that you’d be willing to write up a patch for it?
+1 to adopting a mature OSS library for XML parsing
Summary
There is an issue on function: https://github.com/LadybirdBrowser/ladybird/blob/c04297129323904f15c743eb83a3ff934769b14d/Userland/Libraries/LibXML/Parser/Parser.cpp#L754 I was able to figure out it is related to the parsing of Entity Reference. There may be an issue in there. Additionally, there is an Entity Reference grammar rule that seem not be implemented, namely
[69]
here https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-Reference:PEReference | ::= | '%' Name ';'
It's similar to the
EntityRef
one, so maybe easy to implement. Maybe that's the cause of the issue.Side note, just wondering, is it worth to develop our own XML parsing lib? Maybe it's better to use an existing, well-mantained FOSS one?
Operating system
Linux
Steps to reproduce
...
Expected behavior
The thing should parse correctly and without error
Actual behavior
Parsing error
URL for a reduced test case
Not vailable
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
No response
Build flags or config settings
No response
Contribute a patch?