fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.04k stars 711 forks source link

Add a parseFragment option for parse5 #712

Open justinfagnani opened 5 months ago

justinfagnani commented 5 months ago

parse() and parseFragment() use different spec-compliant parsing algorithms. To debug fragment parsing and differences between the two algorithms, it would be great to include a "fragment parsing" option to parse5.