Closed ForbesLindesay closed 7 years ago
Would it be better to add a doctype
property to the outermost AST node in the parser? At least that would save the time for walking the AST again.
True, probably needs to be in the linker though, since it could be any of the un-linked ASTs that contain the doctype.
I decided not to migrate this PR to the monorepo.
[closes jadejs/jade#1918]
This is a little bit of a fudge, and it really should have some unit tests.