Remove ancient nodes #7
Labels
🗄 area/interface
This affects the public interface
💪 phase/solved
Post is done
🧑 semver/major
This is a change
🦋 type/enhancement
This is great to have
htmlparser2
supports a weird mix of XML and HTML, such as processing instructions and directives. HTML, the standard, does not. For example,processingInstruction
s,directive
s (other than doctypes), andcdata
are not supported in HTML.There’s a new branch up for rehype which uses parse5, a standard compliant HTML parser. It doesn’t support processing instructions or cdata. I’m going to remove support for those. Plus, I’m replacing the
directive
with the one allowed directive: adoctype
node.As
doctype
s have a name, public identifier, and system identifier, maybe those should be supported on the interface?Where:
<!DOCTYPE html>
Yields:
The text was updated successfully, but these errors were encountered: