h1, h2, h3, h4, h5, h6 tags

This commit is contained in:
Face
2025-07-23 13:35:42 +03:00
parent ee1448987d
commit 7a0b678fc2
21 changed files with 232 additions and 0 deletions

View File

@@ -80,6 +80,9 @@ class HTMLElement:
func is_inline_element() -> bool:
return tag_name in ["b", "i", "u", "small", "mark", "code", "span", "a"]
func is_heading_element() -> bool:
return tag_name in ["h1", "h2", "h3", "h4", "h5", "h6"]
class ParseResult:
var root: HTMLElement