Open paulsmith opened 6 months ago
selfClosing
nodeElement
match
parseElement
parseChildren
isVoidElement
🌟 These changes improve the HTML parser to properly handle self-closing elements and void elements according to the HTML spec.
Fixes #126
selfClosing
field tonodeElement
struct to track self-closing tagsmatch
function to accept multiple token typesparseElement
and setselfClosing
fieldparseElement
parseChildren
to handle both start and self-closing tagsisVoidElement
function to check if a tag is a void element🌟 These changes improve the HTML parser to properly handle self-closing elements and void elements according to the HTML spec.
Fixes #126