graph LR
dominate_dom_tag_dom_tag["dominate.dom_tag.dom_tag"]
dominate_dom_tag_dom_tag -- "composes" --> dominate_dom_tag_dom_tag
The DOM Element Model subsystem is primarily encapsulated within the dominate.dom_tag module, with the dominate.dom_tag.dom_tag class serving as its central component. This module defines the core abstractions for representing and manipulating HTML elements programmatically. This internal structure exemplifies the Composite Pattern, where individual dom_tag objects can be treated uniformly whether they are simple elements or complex elements containing other elements. The methods within dom_tag work cohesively to maintain the integrity and manipulability of the HTML element representation.
This is the fundamental building block of the DOM within the dominate library. It represents a single HTML element, managing its attributes, child elements, and parent relationships. It provides the API for constructing and manipulating the hierarchical structure of an HTML document.
Related Classes/Methods:
dominate.dom_tag.dom_tag:__init__dominate.dom_tag.dom_tag:adddominate.dom_tag.dom_tag:__iadd__dominate.dom_tag.dom_tag:set_attributedominate.dom_tag.dom_tag:delete_attributedominate.dom_tag.dom_tag:getdominate.dom_tag.dom_tag:__contains__dominate.dom_tag.dom_tag:cleardominate.dom_tag.dom_tag:_add_to_ctxdominate.dom_tag.dom_tag:_get_thread_contextdominate.dom_tag.dom_tag:clean_pairdominate.dom_tag.dom_tag:clean_attribute