patch to support doctype with test #48

wants to merge 3 commits into from

3 participants


Hi, earlier I made an issue, but figured it would be more efficient if I just wrote the code. This is the issue:


Thanks! I am going to merge your pull but expand it to generally support XML/HTML declarations of the type "<!" and "<?". Looking into that now...


This fix was merged with the following commit, but this pull request remains open.

There is an issue with this fix that it fails to update the location correctly. It will increase the col based on the doctype data, but doesn't account for the <!DOCTYPE {data}> text. To fix, add the following to the end of _updateLocation line 624

} else if (node.type === Mode.Doctype) {
this._col += 10;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment