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

svg parsing #79

Closed
Swaagie opened this issue Mar 17, 2014 · 3 comments
Closed

svg parsing #79

Swaagie opened this issue Mar 17, 2014 · 3 comments

Comments

@Swaagie
Copy link

Swaagie commented Mar 17, 2014

referencing #75 as some basic svg shapes were already added as inline, but the list is rather incomplete. Inline svg is probably going to be a lot more common with increasing browser support. At least polyline and polygon are missing, but there might be more. As @fb55 mentioned there are several other issues with changing the inline list, perhaps we can discuss this issue here and come to a more complete fix.

@Swaagie
Copy link
Author

Swaagie commented Mar 17, 2014

Likewise for elements that are part of an filter, like feGaussianBlur or feOffset. Fact is a lot of elements can be sparse or contain child elements, explicitly closing elements atm is the only solution to making sure everything is parsed correctly.

@fb55
Copy link
Owner

fb55 commented Mar 21, 2014

In the last days, I spent several hours beginning to update this module to fully support HTML5. As far as I can tell right now, the whole transition needs at least two weeks of work, which I can't afford to spend right now.

For now, this module is only an approximation of the HTML spec. I'm willing to accept pull requests adding more void elements, but I'm aware there will always be unsupported cases.

@fb55
Copy link
Owner

fb55 commented Jan 20, 2018

Please refer to inikulin/parse5 if you need a spec-compliant parser.

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

No branches or pull requests

2 participants