=================================== Tags =================================== Hello --- (fragment (element (start_tag (tag_name)) (text) (end_tag (tag_name)))) =================================== Tags with attributes =================================== --- (fragment (element (start_tag (tag_name) (attribute (attribute_name) (attribute_value)) (attribute (attribute_name) (quoted_attribute_value (attribute_value))) (attribute (attribute_name))) (end_tag (tag_name)))) =================================== Nested tags ===================================
a b c
--- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (end_tag (tag_name)))) ================================== Void tags ==================================

--- (fragment (element (start_tag (tag_name)) (element (start_tag (tag_name) (attribute (attribute_name) (quoted_attribute_value (attribute_value))))) (element (start_tag (tag_name))) (element (self_closing_tag (tag_name) (attribute (attribute_name) (attribute_value)) (attribute (attribute_name) (attribute_value)))) (end_tag (tag_name)))) ================================== Void tags at EOF ================================== --- (fragment (element (start_tag (tag_name) (attribute (attribute_name) (quoted_attribute_value (attribute_value)))))) ================================== Custom tags ================================== Hello --- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name) (attribute (attribute_name))) (text) (end_tag (tag_name))) (text) (end_tag (tag_name)))) ================================== Comments ==================================
--- (fragment (comment) (comment) (text) (element (start_tag (tag_name)) (comment) (text) (end_tag (tag_name)))) ================================== Raw text elements ================================== --- (fragment (script_element (start_tag (tag_name)) (raw_text) (end_tag (tag_name))) (text) (style_element (start_tag (tag_name)) (raw_text) (end_tag (tag_name))) (text) (script_element (start_tag (tag_name)) (raw_text) (end_tag (tag_name))) (text)) ================================== All-caps doctype ================================== --- (fragment (doctype)) ================================== Lowercase doctype ================================== --- (fragment (doctype)) ================================== LI elements without close tags ================================== --- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (end_tag (tag_name)))) ====================================== DT and DL elements without close tags ======================================
Coffee
Café
Black hot drink
Milk
White cold drink
--- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (end_tag (tag_name)))) ====================================== P elements without close tags ======================================

One

Two

Three

Four

Five

--- (fragment (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text) (end_tag (tag_name)))) ====================================== Ruby annotation elements without close tags ====================================== とうきょう --- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text)) (end_tag (tag_name)))) ======================================= COLGROUP elements without end tags =======================================
Lime Lemon Orange
--- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text) (element (start_tag (tag_name) (attribute (attribute_name) (quoted_attribute_value (attribute_value))))) (element (start_tag (tag_name) (attribute (attribute_name) (quoted_attribute_value (attribute_value)))))) (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (end_tag (tag_name))) (text) (end_tag (tag_name)))) ========================================= TR, TD, and TH elements without end tags =========================================
One Two
Three Four
--- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text))) (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text)) (element (start_tag (tag_name)) (text))) (end_tag (tag_name))))