jldailey/domjs — Issue #1: Comments support, not closed tags and npm.
Author: gimenete
Created: 2011-11-21 17:52:57+00:00
State: open

Hi,

I'm trying to use this library. But I have found that does not support comments. Trying to parse

foo

and then calling document.toString() generates:

foo

Which is wrong. So I guess it doesn't support comments.

I have also found that it doesn't support tags that don't need to be closed. Such as the tag. If you don't close a meta tag is well formed HTML. But this library processes it wrong. Example:

foo

Parsing it and calling document.toString() generates:

foo

And finally, it would be great to have this library in the npm repository.

Thanks!