WEBELO
HTML Visualizer & DOM Library
Loading...
Searching...
No Matches
Node Class Reference
Inheritance diagram for Node:
EventTarget Attr CharacterData DocumentType ParentNode Comment ProcessingInstruction Text Document DocumentFragment Element CDATASection XMLDocument ShadowRoot HTMLSlotElement

Public Member Functions

bool isConnected ()
virtual Node * firstChild ()
virtual Node * lastChild ()
virtual Node * previousSibling ()
virtual Node * nextSibling ()
bool hasChildNodes () const
Node * getRootNode (bool composed=false)
void normalize ()
Node * cloneNode (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)
Node * insertBefore (Node *node, Node *child)
Node * appendChild (Node *node)
Node * replaceChild (Node *node, Node *child)
Node * removeChild (Node *child)
virtual Node * get_the_parent (Event *event)
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 EventTarget * get_the_parent (const Event *event)

Public Attributes

node_type nodeType
DOMString nodeName
USVString baseURI
Document * ownerDocument
Node * parentNode
Element * parentElement = 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 = {}

Detailed Description

Definition at line 624 of file Webelo.cpp.

Constructor & Destructor Documentation

◆ Node()

Node::Node ( node_type nodeType,
DOMString nodeName,
Document * ownerDocument = nullptr,
Node * parentNode = nullptr )

Definition at line 3887 of file Webelo.cpp.

Member Function Documentation

◆ appendChild()

Node * Node::appendChild ( Node * node)

Definition at line 4064 of file Webelo.cpp.

◆ cloneNode()

Node * Node::cloneNode ( bool subtree)

Definition at line 3970 of file Webelo.cpp.

◆ compareDocumentPosition()

unsigned short Node::compareDocumentPosition ( Node * other)

Definition at line 3991 of file Webelo.cpp.

◆ contains()

bool Node::contains ( Node * other)

Definition at line 4037 of file Webelo.cpp.

◆ firstChild()

Node * Node::firstChild ( )
inlinevirtual

Definition at line 3922 of file Webelo.cpp.

◆ get_the_parent()

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

Definition at line 3954 of file Webelo.cpp.

◆ getnodeValue()

virtual std::optional< DOMString > Node::getnodeValue ( )
inlinevirtual

Definition at line 685 of file Webelo.cpp.

◆ getRootNode()

Node * Node::getRootNode ( bool composed = false)

Definition at line 3904 of file Webelo.cpp.

◆ gettextContent()

virtual std::optional< DOMString > Node::gettextContent ( )
inlinevirtual

Definition at line 689 of file Webelo.cpp.

◆ hasChildNodes()

bool Node::hasChildNodes ( ) const
inline

Definition at line 3917 of file Webelo.cpp.

◆ index()

unsigned long Node::index ( )
inline

Definition at line 719 of file Webelo.cpp.

◆ insertBefore()

Node * Node::insertBefore ( Node * node,
Node * child )

Definition at line 4060 of file Webelo.cpp.

◆ isConnected()

bool Node::isConnected ( )
inline

Definition at line 3897 of file Webelo.cpp.

◆ isDefaultNamespace()

bool Node::isDefaultNamespace ( std::optional< DOMString > & namesp)

Definition at line 4053 of file Webelo.cpp.

◆ isEqualNode()

bool Node::isEqualNode ( Node * otherNode)

Definition at line 3976 of file Webelo.cpp.

◆ isSameNode()

bool Node::isSameNode ( Node * otherNode)

Definition at line 3984 of file Webelo.cpp.

◆ lastChild()

Node * Node::lastChild ( )
inlinevirtual

Definition at line 3925 of file Webelo.cpp.

◆ length()

unsigned long Node::length ( )
inline

Definition at line 655 of file Webelo.cpp.

◆ lookupNamespaceURI()

std::optional< DOMString > Node::lookupNamespaceURI ( std::optional< DOMString > & prefix)

Definition at line 4048 of file Webelo.cpp.

◆ lookupPrefix()

std::optional< DOMString > Node::lookupPrefix ( std::optional< DOMString > & namesp)
virtual

Definition at line 4042 of file Webelo.cpp.

◆ nextSibling()

Node * Node::nextSibling ( )
virtual

Definition at line 3941 of file Webelo.cpp.

◆ normalize()

void Node::normalize ( )

Definition at line 4077 of file Webelo.cpp.

◆ operator==()

bool Node::operator== ( Node & other)
inline

Definition at line 695 of file Webelo.cpp.

◆ operator^()

bool Node::operator^ ( Node * other)
inline

Definition at line 698 of file Webelo.cpp.

◆ previousSibling()

Node * Node::previousSibling ( )
virtual

Definition at line 3928 of file Webelo.cpp.

◆ removeChild()

Node * Node::removeChild ( Node * child)

Definition at line 4072 of file Webelo.cpp.

◆ replaceChild()

Node * Node::replaceChild ( Node * node,
Node * child )

Definition at line 4068 of file Webelo.cpp.

◆ setnodeValue()

virtual void Node::setnodeValue ( DOMString & val)
inlinevirtual

Definition at line 688 of file Webelo.cpp.

◆ settextContent()

virtual void Node::settextContent ( DOMString & val)
inlinevirtual

Definition at line 692 of file Webelo.cpp.

Member Data Documentation

◆ baseURI

USVString Node::baseURI

Definition at line 629 of file Webelo.cpp.

◆ childNodes

NodeList Node::childNodes

Definition at line 637 of file Webelo.cpp.

◆ nodeName

DOMString Node::nodeName

Definition at line 628 of file Webelo.cpp.

◆ nodeType

node_type Node::nodeType

Definition at line 627 of file Webelo.cpp.

◆ nodeValue

DOMString Node::nodeValue

Definition at line 647 of file Webelo.cpp.

◆ ownerDocument

Document* Node::ownerDocument

Definition at line 630 of file Webelo.cpp.

◆ parentElement

Element* Node::parentElement = nullptr

Definition at line 633 of file Webelo.cpp.

◆ parentNode

Node* Node::parentNode

Definition at line 632 of file Webelo.cpp.

◆ textContent

DOMString Node::textContent

Definition at line 648 of file Webelo.cpp.


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