IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\Document Interface Reference
+ Inheritance diagram for Wikimedia\IDLeDOM\Document:

Public Member Functions

DOMImplementation getImplementation ()
 
string getURL ()
 
string getDocumentURI ()
 
string getCompatMode ()
 
string getCharacterSet ()
 
string getCharset ()
 
string getInputEncoding ()
 
string getContentType ()
 
DocumentType null getDoctype ()
 
Element null getDocumentElement ()
 
HTMLCollection getElementsByTagName (string $qualifiedName)
 
HTMLCollection getElementsByTagNameNS (?string $namespace, string $localName)
 
HTMLCollection getElementsByClassName (string $classNames)
 
Element createElement (string $localName, $options=null)
 
Element createElementNS (?string $namespace, string $qualifiedName, $options=null)
 
DocumentFragment createDocumentFragment ()
 
Text createTextNode (string $data)
 
CDATASection createCDATASection (string $data)
 
Comment createComment (string $data)
 
ProcessingInstruction createProcessingInstruction (string $target, string $data)
 
Node importNode ($node, bool $deep=false)
 
Node adoptNode ($node)
 
Attr createAttribute (string $localName)
 
Attr createAttributeNS (?string $namespace, string $qualifiedName)
 
Event createEvent (string $interface)
 
Range createRange ()
 
NodeIterator createNodeIterator ($root, int $whatToShow=-1, $filter=null)
 
TreeWalker createTreeWalker ($root, int $whatToShow=-1, $filter=null)
 
Location null getLocation ()
 
 setLocation (string $val)
 
string getReferrer ()
 
string getCookie ()
 
 setCookie (string $val)
 
string getLastModified ()
 
string getTitle ()
 
 setTitle (string $val)
 
string getDir ()
 
 setDir (string $val)
 
HTMLElement null getBody ()
 
 setBody ($val)
 
HTMLHeadElement null getHead ()
 
HTMLCollection getImages ()
 
HTMLCollection getEmbeds ()
 
HTMLCollection getPlugins ()
 
HTMLCollection getLinks ()
 
HTMLCollection getForms ()
 
HTMLCollection getScripts ()
 
NodeList getElementsByName (string $elementName)
 
HTMLScriptElement null getCurrentScript ()
 
Wikimedia IDLeDOM Document open (string $type='text/html', string $replace='')
 
void close ()
 
void write (string ... $text)
 
void writeln (string ... $text)
 
bool hasFocus ()
 
EventHandlerNonNull callable null getOnreadystatechange ()
 
 setOnreadystatechange ($val)
 
HTMLCollection getAnchors ()
 
HTMLCollection getApplets ()
 
void clear ()
 
void captureEvents ()
 
void releaseEvents ()
 
bool getHidden ()
 
string getVisibilityState ()
 
EventHandlerNonNull callable null getOnvisibilitychange ()
 
 setOnvisibilitychange ($val)
 
string getEncoding ()
 
 setEncoding (string $val)
 
bool getPreserveWhiteSpace ()
 
 setPreserveWhiteSpace (bool $val)
 
bool getFormatOutput ()
 
 setFormatOutput (bool $val)
 
bool getValidateOnParse ()
 
 setValidateOnParse (bool $val)
 
bool getStrictErrorChecking ()
 
 setStrictErrorChecking (bool $val)
 
bool loadHTML (string $source, int $options=0)
 
bool loadXML (string $source, int $options=0)
 
string bool saveHTML ($node=null)
 
string bool saveXML ($node=null, int $options=0)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\Node
int getNodeType ()
 
string getNodeName ()
 
string getBaseURI ()
 
bool getIsConnected ()
 
Document null getOwnerDocument ()
 
Wikimedia IDLeDOM Node getRootNode ($options=null)
 
Node null getParentNode ()
 
Element null getParentElement ()
 
bool hasChildNodes ()
 
NodeList getChildNodes ()
 
Node null getFirstChild ()
 
Node null getLastChild ()
 
Node null getPreviousSibling ()
 
Node null getNextSibling ()
 
string getNodeValue ()
 
 setNodeValue (?string $val)
 
string getTextContent ()
 
 setTextContent (?string $val)
 
void normalize ()
 
Wikimedia IDLeDOM Node cloneNode (bool $deep=false)
 
bool isEqualNode ($otherNode)
 
bool isSameNode ($otherNode)
 
int compareDocumentPosition ($other)
 
bool contains ($other)
 
string lookupPrefix (?string $namespace)
 
string lookupNamespaceURI (?string $prefix)
 
bool isDefaultNamespace (?string $namespace)
 
Wikimedia IDLeDOM Node insertBefore ($node, $child=null)
 
Wikimedia IDLeDOM Node appendChild ($node)
 
Wikimedia IDLeDOM Node replaceChild ($node, $child)
 
Wikimedia IDLeDOM Node removeChild ($child)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\EventTarget
void addEventListener (string $type, $callback, $options=null)
 
void removeEventListener (string $type, $callback, $options=null)
 
bool dispatchEvent ($event)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\DocumentOrShadowRoot
StyleSheetList getStyleSheets ()
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\GlobalEventHandlers
EventHandlerNonNull callable null getOnload ()
 
 setOnload ($val)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\NonElementParentNode
Element null getElementById (string $elementId)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\ParentNode
HTMLCollection getChildren ()
 
Element null getFirstElementChild ()
 
Element null getLastElementChild ()
 
int getChildElementCount ()
 
void prepend (... $nodes)
 
void append (... $nodes)
 
void replaceChildren (... $nodes)
 
Element null querySelector (string $selectors)
 
NodeList querySelectorAll (string $selectors)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\XPathEvaluatorBase
XPathExpression createExpression (string $expression, $resolver=null)
 
XPathNSResolver callable createNSResolver ($nodeResolver)
 
XPathResult evaluate (string $expression, $contextNode, $resolver=null, int $type=0, $result=null)
 

Additional Inherited Members

- Public Attributes inherited from Wikimedia\IDLeDOM\Node
const ELEMENT_NODE = 1
 
const ATTRIBUTE_NODE = 2
 
const TEXT_NODE = 3
 
const CDATA_SECTION_NODE = 4
 
const ENTITY_REFERENCE_NODE = 5
 
const ENTITY_NODE = 6
 
const PROCESSING_INSTRUCTION_NODE = 7
 
const COMMENT_NODE = 8
 
const DOCUMENT_NODE = 9
 
const DOCUMENT_TYPE_NODE = 10
 
const DOCUMENT_FRAGMENT_NODE = 11
 
const NOTATION_NODE = 12
 
const DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const DOCUMENT_POSITION_PRECEDING = 0x02
 
const DOCUMENT_POSITION_FOLLOWING = 0x04
 
const DOCUMENT_POSITION_CONTAINS = 0x08
 
const DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 

Member Function Documentation

◆ adoptNode()

Node Wikimedia\IDLeDOM\Document::adoptNode ( $node)
Parameters
Node$node
Returns
Node

◆ captureEvents()

void Wikimedia\IDLeDOM\Document::captureEvents ( )
Returns
void

◆ clear()

void Wikimedia\IDLeDOM\Document::clear ( )
Returns
void

◆ close()

void Wikimedia\IDLeDOM\Document::close ( )
Returns
void

◆ createAttribute()

Attr Wikimedia\IDLeDOM\Document::createAttribute ( string $localName)
Parameters
string$localName
Returns
Attr

◆ createAttributeNS()

Attr Wikimedia\IDLeDOM\Document::createAttributeNS ( ?string $namespace,
string $qualifiedName )
Parameters
?string$namespace
string$qualifiedName
Returns
Attr

◆ createCDATASection()

CDATASection Wikimedia\IDLeDOM\Document::createCDATASection ( string $data)
Parameters
string$data
Returns
CDATASection

◆ createComment()

Comment Wikimedia\IDLeDOM\Document::createComment ( string $data)
Parameters
string$data
Returns
Comment

◆ createDocumentFragment()

DocumentFragment Wikimedia\IDLeDOM\Document::createDocumentFragment ( )
Returns
DocumentFragment

◆ createElement()

Element Wikimedia\IDLeDOM\Document::createElement ( string $localName,
$options = null )
Parameters
string$localName
string | ElementCreationOptions | associative-array | null$options
Returns
Element

◆ createElementNS()

Element Wikimedia\IDLeDOM\Document::createElementNS ( ?string $namespace,
string $qualifiedName,
$options = null )
Parameters
?string$namespace
string$qualifiedName
string | ElementCreationOptions | associative-array | null$options
Returns
Element

◆ createEvent()

Event Wikimedia\IDLeDOM\Document::createEvent ( string $interface)
Parameters
string$interface
Returns
Event

◆ createNodeIterator()

NodeIterator Wikimedia\IDLeDOM\Document::createNodeIterator ( $root,
int $whatToShow = -1,
$filter = null )
Parameters
Node$root
int$whatToShow
NodeFilter | callable | null$filter
Returns
NodeIterator

◆ createProcessingInstruction()

ProcessingInstruction Wikimedia\IDLeDOM\Document::createProcessingInstruction ( string $target,
string $data )
Parameters
string$target
string$data
Returns
ProcessingInstruction

◆ createRange()

Range Wikimedia\IDLeDOM\Document::createRange ( )
Returns
Range

◆ createTextNode()

Text Wikimedia\IDLeDOM\Document::createTextNode ( string $data)
Parameters
string$data
Returns
Text

◆ createTreeWalker()

TreeWalker Wikimedia\IDLeDOM\Document::createTreeWalker ( $root,
int $whatToShow = -1,
$filter = null )
Parameters
Node$root
int$whatToShow
NodeFilter | callable | null$filter
Returns
TreeWalker

◆ getAnchors()

HTMLCollection Wikimedia\IDLeDOM\Document::getAnchors ( )
Returns
HTMLCollection

◆ getApplets()

HTMLCollection Wikimedia\IDLeDOM\Document::getApplets ( )
Returns
HTMLCollection

◆ getBody()

HTMLElement null Wikimedia\IDLeDOM\Document::getBody ( )
Returns
HTMLElement|null

◆ getCharacterSet()

string Wikimedia\IDLeDOM\Document::getCharacterSet ( )
Returns
string

◆ getCharset()

string Wikimedia\IDLeDOM\Document::getCharset ( )
Returns
string

◆ getCompatMode()

string Wikimedia\IDLeDOM\Document::getCompatMode ( )
Returns
string

◆ getContentType()

string Wikimedia\IDLeDOM\Document::getContentType ( )
Returns
string

◆ getCookie()

string Wikimedia\IDLeDOM\Document::getCookie ( )
Returns
string

◆ getCurrentScript()

HTMLScriptElement null Wikimedia\IDLeDOM\Document::getCurrentScript ( )
Returns
HTMLScriptElement|null

◆ getDir()

string Wikimedia\IDLeDOM\Document::getDir ( )
Returns
string

◆ getDoctype()

DocumentType null Wikimedia\IDLeDOM\Document::getDoctype ( )
Returns
DocumentType|null

◆ getDocumentElement()

Element null Wikimedia\IDLeDOM\Document::getDocumentElement ( )
Returns
Element|null

◆ getDocumentURI()

string Wikimedia\IDLeDOM\Document::getDocumentURI ( )
Returns
string

◆ getElementsByClassName()

HTMLCollection Wikimedia\IDLeDOM\Document::getElementsByClassName ( string $classNames)
Parameters
string$classNames
Returns
HTMLCollection

◆ getElementsByName()

NodeList Wikimedia\IDLeDOM\Document::getElementsByName ( string $elementName)
Parameters
string$elementName
Returns
NodeList

◆ getElementsByTagName()

HTMLCollection Wikimedia\IDLeDOM\Document::getElementsByTagName ( string $qualifiedName)
Parameters
string$qualifiedName
Returns
HTMLCollection

◆ getElementsByTagNameNS()

HTMLCollection Wikimedia\IDLeDOM\Document::getElementsByTagNameNS ( ?string $namespace,
string $localName )
Parameters
?string$namespace
string$localName
Returns
HTMLCollection

◆ getEmbeds()

HTMLCollection Wikimedia\IDLeDOM\Document::getEmbeds ( )
Returns
HTMLCollection

◆ getEncoding()

string Wikimedia\IDLeDOM\Document::getEncoding ( )
Returns
string

◆ getFormatOutput()

bool Wikimedia\IDLeDOM\Document::getFormatOutput ( )
Returns
bool

◆ getForms()

HTMLCollection Wikimedia\IDLeDOM\Document::getForms ( )
Returns
HTMLCollection

◆ getHead()

HTMLHeadElement null Wikimedia\IDLeDOM\Document::getHead ( )
Returns
HTMLHeadElement|null

◆ getHidden()

bool Wikimedia\IDLeDOM\Document::getHidden ( )
Returns
bool

◆ getImages()

HTMLCollection Wikimedia\IDLeDOM\Document::getImages ( )
Returns
HTMLCollection

◆ getImplementation()

DOMImplementation Wikimedia\IDLeDOM\Document::getImplementation ( )
Returns
DOMImplementation

◆ getInputEncoding()

string Wikimedia\IDLeDOM\Document::getInputEncoding ( )
Returns
string

◆ getLastModified()

string Wikimedia\IDLeDOM\Document::getLastModified ( )
Returns
string

◆ getLinks()

HTMLCollection Wikimedia\IDLeDOM\Document::getLinks ( )
Returns
HTMLCollection

◆ getLocation()

Location null Wikimedia\IDLeDOM\Document::getLocation ( )
Returns
Location|null

◆ getOnreadystatechange()

EventHandlerNonNull callable null Wikimedia\IDLeDOM\Document::getOnreadystatechange ( )
Returns
EventHandlerNonNull|callable|null

◆ getOnvisibilitychange()

EventHandlerNonNull callable null Wikimedia\IDLeDOM\Document::getOnvisibilitychange ( )
Returns
EventHandlerNonNull|callable|null

◆ getPlugins()

HTMLCollection Wikimedia\IDLeDOM\Document::getPlugins ( )
Returns
HTMLCollection

◆ getPreserveWhiteSpace()

bool Wikimedia\IDLeDOM\Document::getPreserveWhiteSpace ( )
Returns
bool

◆ getReferrer()

string Wikimedia\IDLeDOM\Document::getReferrer ( )
Returns
string

◆ getScripts()

HTMLCollection Wikimedia\IDLeDOM\Document::getScripts ( )
Returns
HTMLCollection

◆ getStrictErrorChecking()

bool Wikimedia\IDLeDOM\Document::getStrictErrorChecking ( )
Returns
bool

◆ getTitle()

string Wikimedia\IDLeDOM\Document::getTitle ( )
Returns
string

◆ getURL()

string Wikimedia\IDLeDOM\Document::getURL ( )
Returns
string

◆ getValidateOnParse()

bool Wikimedia\IDLeDOM\Document::getValidateOnParse ( )
Returns
bool

◆ getVisibilityState()

string Wikimedia\IDLeDOM\Document::getVisibilityState ( )
Returns
string

◆ hasFocus()

bool Wikimedia\IDLeDOM\Document::hasFocus ( )
Returns
bool

◆ importNode()

Node Wikimedia\IDLeDOM\Document::importNode ( $node,
bool $deep = false )
Parameters
Node$node
bool$deep
Returns
Node

◆ loadHTML()

bool Wikimedia\IDLeDOM\Document::loadHTML ( string $source,
int $options = 0 )
Parameters
string$source
int$options
Returns
bool

◆ loadXML()

bool Wikimedia\IDLeDOM\Document::loadXML ( string $source,
int $options = 0 )
Parameters
string$source
int$options
Returns
bool

◆ open()

Wikimedia IDLeDOM Document Wikimedia\IDLeDOM\Document::open ( string $type = 'text/html',
string $replace = '' )
Parameters
string$type
string$replace
Returns
\Wikimedia\IDLeDOM\Document

◆ releaseEvents()

void Wikimedia\IDLeDOM\Document::releaseEvents ( )
Returns
void

◆ saveHTML()

string bool Wikimedia\IDLeDOM\Document::saveHTML ( $node = null)
Parameters
Node | null$node
Returns
string|bool

◆ saveXML()

string bool Wikimedia\IDLeDOM\Document::saveXML ( $node = null,
int $options = 0 )
Parameters
Node | null$node
int$options
Returns
string|bool

◆ setBody()

Wikimedia\IDLeDOM\Document::setBody ( $val)
Parameters
HTMLElement | null$val

◆ setCookie()

Wikimedia\IDLeDOM\Document::setCookie ( string $val)
Parameters
string$val

◆ setDir()

Wikimedia\IDLeDOM\Document::setDir ( string $val)
Parameters
string$val

◆ setEncoding()

Wikimedia\IDLeDOM\Document::setEncoding ( string $val)
Parameters
string$val

◆ setFormatOutput()

Wikimedia\IDLeDOM\Document::setFormatOutput ( bool $val)
Parameters
bool$val

◆ setLocation()

Wikimedia\IDLeDOM\Document::setLocation ( string $val)
Parameters
string$val

◆ setOnreadystatechange()

Wikimedia\IDLeDOM\Document::setOnreadystatechange ( $val)
Parameters
EventHandlerNonNull | callable | null$val

◆ setOnvisibilitychange()

Wikimedia\IDLeDOM\Document::setOnvisibilitychange ( $val)
Parameters
EventHandlerNonNull | callable | null$val

◆ setPreserveWhiteSpace()

Wikimedia\IDLeDOM\Document::setPreserveWhiteSpace ( bool $val)
Parameters
bool$val

◆ setStrictErrorChecking()

Wikimedia\IDLeDOM\Document::setStrictErrorChecking ( bool $val)
Parameters
bool$val

◆ setTitle()

Wikimedia\IDLeDOM\Document::setTitle ( string $val)
Parameters
string$val

◆ setValidateOnParse()

Wikimedia\IDLeDOM\Document::setValidateOnParse ( bool $val)
Parameters
bool$val

◆ write()

void Wikimedia\IDLeDOM\Document::write ( string ... $text)
Parameters
string...$text
Returns
void

◆ writeln()

void Wikimedia\IDLeDOM\Document::writeln ( string ... $text)
Parameters
string...$text
Returns
void

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