tree-sitter-html
tree-sitter-html copied to clipboard
Void elements should not allow children
See https://developer.mozilla.org/en-US/docs/Glossary/Void_element
Example:
<!DOCTYPE html>
<html lang="en">
<head><title>foo</title></head>
<body><input>bar</input></body>
The parser should produce an error on </input> like the W3C validator does.