tree-sitter-html icon indicating copy to clipboard operation
tree-sitter-html copied to clipboard

Void elements should not allow children

Open ObserverOfTime opened this issue 1 year ago • 0 comments

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.

ObserverOfTime avatar Mar 03 '24 12:03 ObserverOfTime