WEBELO
HTML Visualizer & DOM Library
Loading...
Searching...
No Matches
Document Class Reference
Inheritance diagram for Document:
ParentNode Node EventTarget XMLDocument

Public Member Functions

DocumentTypedoctype ()
ElementdocumentElement ()
 Document (Document *ownerdoc=nullptr, Node *parentnode=nullptr)
DOMString compatMode ()
DOMString * lookupPrefix (std::optional< DOMString > namesp)
HTMLCollectiongetElementsByTagName (DOMString qualifiedName)
HTMLCollectiongetElementsByTagNameNS (std::optional< DOMString > namesp, DOMString localname)
HTMLCollectiongetElementsByClassName (std::vector< DOMString > &classNames)
ElementcreateElement (DOMString localName, std::variant< DOMString, ElementCreationOptions > options)
ElementcreateElementNS (std::optional< DOMString > namesp, DOMString qualifiedName, std::variant< DOMString, ElementCreationOptions > options)
NodeimportNode (Node *node, std::variant< bool, ImportNodeOptions > options=false)
NodeadoptNode (Node *node)
DocumentFragmentcreateDocumentFragment ()
TextcreateTextNode (DOMString data)
CDATASectioncreateCDATASection (DOMString data)
CommentcreateComment (DOMString data)
ProcessingInstructioncreateProcessingInstruction (DOMString target, DOMString data)
AttrcreateAttribute (DOMString localName)
AttrcreateAttributeNS (std::optional< DOMString > namesp, DOMString qualifiedName)
EventcreateEvent (DOMString interface)
RangecreateRange ()
NodeIteratorcreateNodeIterator (Node *root, unsigned long whatToShow=0xFFFFFFFF, NodeFilter *filter=nullptr)
TreeWalkercreateTreeWalker (Node *root, unsigned long whatToShow=0xFFFFFFFF, NodeFilter *filter=nullptr)
CustomElementRegistryget_custom_element_registry () const
virtual Nodeget_the_parent (Event *event)
virtual void making_it_abstract ()
Public Member Functions inherited from ParentNode
ElementfirstElementChild () const
ElementlastElementChild () const
unsigned long childElementCount () const
void evaluate_children ()
void prepend (std::vector< std::variant< Node *, DOMString > > &nodes)
void append (std::vector< std::variant< Node *, DOMString > > &nodes)
void replaceChildren (std::vector< std::variant< Node *, DOMString > > &nodes)
void moveBefore (Node *node, Node *child)
ElementquerySelector (DOMString selectors)
NodeList querySelectorAll (DOMString selectors)
 ParentNode (node_type nodeType, DOMString nodeName, Document *ownerDocument, Node *parentNode)
Public Member Functions inherited from Node
bool isConnected ()
virtual NodefirstChild ()
virtual NodelastChild ()
virtual NodepreviousSibling ()
virtual NodenextSibling ()
bool hasChildNodes () const
NodegetRootNode (bool composed=false)
void normalize ()
NodecloneNode (bool subtree)
 Node (node_type nodeType, DOMString nodeName, Document *ownerDocument=nullptr, Node *parentNode=nullptr)
unsigned long length ()
bool isEqualNode (Node *otherNode)
bool isSameNode (Node *otherNode)
unsigned short compareDocumentPosition (Node *other)
bool contains (Node *other)
virtual std::optional< DOMString > lookupPrefix (std::optional< DOMString > &namesp)
std::optional< DOMString > lookupNamespaceURI (std::optional< DOMString > &prefix)
bool isDefaultNamespace (std::optional< DOMString > &namesp)
NodeinsertBefore (Node *node, Node *child)
NodeappendChild (Node *node)
NodereplaceChild (Node *node, Node *child)
NoderemoveChild (Node *child)
virtual std::optional< DOMString > getnodeValue ()
virtual void setnodeValue (DOMString &val)
virtual std::optional< DOMString > gettextContent ()
virtual void settextContent (DOMString &val)
bool operator== (Node &other)
bool operator^ (Node *other)
unsigned long index ()
Public Member Functions inherited from EventTarget
void addEventListener (DOMString &type, EventListener *callback, std::variant< AddEventListenerOptions, bool > &options)
void removeEventListener (DOMString &type, EventListener *callback, bool capture)
void removeAllEventListeners ()
bool dispatchEvent (Event *event)
bool operator== (const EventTarget &a)
bool operator!= (const EventTarget &a)
virtual EventTargetget_the_parent (const Event *event)

Public Attributes

CustomElementRegistrycustom_element_registry = nullptr
DOMImplementationimplementation
USVString URL = "about:blank"
USVString documentURI = URL
 serialize
DOMString characterSet = "utf-8"
 serialize
DOMString contentType = "application/xml"
DOMString encoding = "utf-8"
DocType type = XML
DOMString * origin = nullptr
DocMode mode = NO_QUIRKS
bool allow_declarative_shodow_roots = false
Public Attributes inherited from ParentNode
HTMLCollection children
Public Attributes inherited from Node
node_type nodeType
DOMString nodeName
USVString baseURI
DocumentownerDocument
NodeparentNode
ElementparentElement = nullptr
NodeList childNodes
DOMString nodeValue
DOMString textContent
Public Attributes inherited from EventTarget
bool has_activation_behavior = false
bool has_legacy_canceled_activation_behavior = false
bool has_legacy_pre_activation_behavior = false
std::function< void(Event *event)> activation_behavior_algorithm = [](Event* event) {}
std::function< void()> legacy_canceled_activation_behavior_algorithm = []() {}
std::function< void()> legacy_pre_activation_behavior_algorithm = []() {}
std::vector< event_listener * > event_listener_list = {}

Friends

ElementgetElementById (Node *node, const DOMString &elementId)

Detailed Description

Definition at line 1079 of file Webelo.cpp.

Constructor & Destructor Documentation

◆ Document()

Document::Document ( Document * ownerdoc = nullptr,
Node * parentnode = nullptr )
inline

Definition at line 1097 of file Webelo.cpp.

Member Function Documentation

◆ adoptNode()

Node * Document::adoptNode ( Node * node)

Definition at line 4357 of file Webelo.cpp.

◆ compatMode()

DOMString Document::compatMode ( )

Definition at line 4239 of file Webelo.cpp.

◆ createAttribute()

Attr * Document::createAttribute ( DOMString localName)

Definition at line 4368 of file Webelo.cpp.

◆ createAttributeNS()

Attr * Document::createAttributeNS ( std::optional< DOMString > namesp,
DOMString qualifiedName )

Definition at line 4378 of file Webelo.cpp.

◆ createCDATASection()

CDATASection * Document::createCDATASection ( DOMString data)

Definition at line 4318 of file Webelo.cpp.

◆ createComment()

Comment * Document::createComment ( DOMString data)

Definition at line 4327 of file Webelo.cpp.

◆ createDocumentFragment()

DocumentFragment * Document::createDocumentFragment ( )

Definition at line 4306 of file Webelo.cpp.

◆ createElement()

Element * Document::createElement ( DOMString localName,
std::variant< DOMString, ElementCreationOptions > options )

Definition at line 4283 of file Webelo.cpp.

◆ createElementNS()

Element * Document::createElementNS ( std::optional< DOMString > namesp,
DOMString qualifiedName,
std::variant< DOMString, ElementCreationOptions > options )

Definition at line 4302 of file Webelo.cpp.

◆ createEvent()

Event * Document::createEvent ( DOMString interface)

Definition at line 4389 of file Webelo.cpp.

◆ createProcessingInstruction()

ProcessingInstruction * Document::createProcessingInstruction ( DOMString target,
DOMString data )

Definition at line 4333 of file Webelo.cpp.

◆ createTextNode()

Text * Document::createTextNode ( DOMString data)

Definition at line 4312 of file Webelo.cpp.

◆ doctype()

DocumentType * Document::doctype ( )

Definition at line 4246 of file Webelo.cpp.

◆ documentElement()

Element * Document::documentElement ( )

Definition at line 4256 of file Webelo.cpp.

◆ get_custom_element_registry()

CustomElementRegistry * Document::get_custom_element_registry ( ) const
inline

Definition at line 1129 of file Webelo.cpp.

◆ get_the_parent()

virtual Node * Document::get_the_parent ( Event * event)
inlinevirtual

Reimplemented from Node.

Definition at line 1133 of file Webelo.cpp.

◆ getElementsByClassName()

HTMLCollection * Document::getElementsByClassName ( std::vector< DOMString > & classNames)

Definition at line 4278 of file Webelo.cpp.

◆ getElementsByTagName()

HTMLCollection * Document::getElementsByTagName ( DOMString qualifiedName)

Definition at line 4268 of file Webelo.cpp.

◆ getElementsByTagNameNS()

HTMLCollection * Document::getElementsByTagNameNS ( std::optional< DOMString > namesp,
DOMString localname )

Definition at line 4273 of file Webelo.cpp.

◆ importNode()

Node * Document::importNode ( Node * node,
std::variant< bool, ImportNodeOptions > options = false )

Definition at line 4343 of file Webelo.cpp.

◆ lookupPrefix()

DOMString * Document::lookupPrefix ( std::optional< DOMString > namesp)

Definition at line 4230 of file Webelo.cpp.

◆ making_it_abstract()

virtual void Document::making_it_abstract ( )
inlinevirtual

Reimplemented from ParentNode.

Definition at line 1140 of file Webelo.cpp.

Member Data Documentation

◆ allow_declarative_shodow_roots

bool Document::allow_declarative_shodow_roots = false

Definition at line 1095 of file Webelo.cpp.

◆ characterSet

DOMString Document::characterSet = "utf-8"

serialize

Definition at line 1085 of file Webelo.cpp.

◆ contentType

DOMString Document::contentType = "application/xml"

Definition at line 1086 of file Webelo.cpp.

◆ custom_element_registry

CustomElementRegistry* Document::custom_element_registry = nullptr

Definition at line 1081 of file Webelo.cpp.

◆ documentURI

USVString Document::documentURI = URL

serialize

Definition at line 1084 of file Webelo.cpp.

◆ encoding

DOMString Document::encoding = "utf-8"

Definition at line 1091 of file Webelo.cpp.

◆ implementation

DOMImplementation* Document::implementation

Definition at line 1082 of file Webelo.cpp.

◆ mode

DocMode Document::mode = NO_QUIRKS

Definition at line 1094 of file Webelo.cpp.

◆ origin

DOMString* Document::origin = nullptr

Definition at line 1093 of file Webelo.cpp.

◆ type

DocType Document::type = XML

Definition at line 1092 of file Webelo.cpp.

◆ URL

USVString Document::URL = "about:blank"

Definition at line 1083 of file Webelo.cpp.


The documentation for this class was generated from the following file: