DOMElement

class DOMElement : DOMNode {}

Constructors

this
this(WebKitDOMElement* webKitDOMElement, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

blur
void blur()
closest
DOMElement closest(string selectors)
focus
void focus()
getAttribute
string getAttribute(string name)
getAttributeNode
DOMAttr getAttributeNode(string name)
getAttributeNodeNs
DOMAttr getAttributeNodeNs(string namespaceURI, string localName)
getAttributeNs
string getAttributeNs(string namespaceURI, string localName)
getAttributes
DOMNamedNodeMap getAttributes()
getBoundingClientRect
DOMClientRect getBoundingClientRect()

Returns a #WebKitDOMClientRect representing the size and position of @self relative to the viewport.

getChildElementCount
gulong getChildElementCount()
getChildren
DOMHTMLCollection getChildren()
getClassList
DOMDOMTokenList getClassList()
getClassName
string getClassName()
getClientHeight
double getClientHeight()
getClientLeft
double getClientLeft()
getClientRects
DOMClientRectList getClientRects()

Returns a collection of #WebKitDOMClientRect objects, each of which describe the size and position of a CSS border box relative to the viewport.

getClientTop
double getClientTop()
getClientWidth
double getClientWidth()
getDOMElementStruct
WebKitDOMElement* getDOMElementStruct(bool transferOwnership)

Get the main Gtk struct

getElementsByClassName
DOMNodeList getElementsByClassName(string className)
getElementsByClassNameAsHtmlCollection
DOMHTMLCollection getElementsByClassNameAsHtmlCollection(string name)
getElementsByTagName
DOMNodeList getElementsByTagName(string tagName)
getElementsByTagNameAsHtmlCollection
DOMHTMLCollection getElementsByTagNameAsHtmlCollection(string name)
getElementsByTagNameNs
DOMNodeList getElementsByTagNameNs(string namespaceUri, string tagName)
getElementsByTagNameNsAsHtmlCollection
DOMHTMLCollection getElementsByTagNameNsAsHtmlCollection(string namespaceURI, string localName)
getFirstElementChild
DOMElement getFirstElementChild()
getId
string getId()
getInnerHtml
string getInnerHtml()
getLastElementChild
DOMElement getLastElementChild()
getLocalName
string getLocalName()
getNamespaceUri
string getNamespaceUri()
getNextElementSibling
DOMElement getNextElementSibling()
getOffsetHeight
double getOffsetHeight()
getOffsetLeft
double getOffsetLeft()
getOffsetParent
DOMElement getOffsetParent()
getOffsetTop
double getOffsetTop()
getOffsetWidth
double getOffsetWidth()
getOuterHtml
string getOuterHtml()
getPrefix
string getPrefix()
getPreviousElementSibling
DOMElement getPreviousElementSibling()
getScrollHeight
glong getScrollHeight()
getScrollLeft
glong getScrollLeft()
getScrollTop
glong getScrollTop()
getScrollWidth
glong getScrollWidth()
getStruct
void* getStruct()

the main Gtk struct as a void*

getStyle
DOMCSSStyleDeclaration getStyle()
getTagName
string getTagName()
getWebkitRegionOverset
string getWebkitRegionOverset()

CSS Regions support has been removed. This function does nothing.

hasAttribute
bool hasAttribute(string name)
hasAttributeNs
bool hasAttributeNs(string namespaceURI, string localName)
hasAttributes
bool hasAttributes()
htmlInputElementGetAutoFilled
bool htmlInputElementGetAutoFilled()
htmlInputElementIsUserEdited
bool htmlInputElementIsUserEdited()

Get whether @element is an HTML text input element that has been edited by a user action.

htmlInputElementSetAutoFilled
void htmlInputElementSetAutoFilled(bool autoFilled)

Set whether the element is an HTML input element that has been filled automatically. If @element is not an HTML input element this function does nothing.

htmlInputElementSetEditingValue
void htmlInputElementSetEditingValue(string value)

Set the value of an HTML input element as if it had been edited by the user, triggering a change event. If @element is not an HTML input element this function does nothing.

insertAdjacentElement
DOMElement insertAdjacentElement(string where, DOMElement element)
insertAdjacentHtml
void insertAdjacentHtml(string where, string html)
insertAdjacentText
void insertAdjacentText(string where, string text)
matches
bool matches(string selectors)
querySelector
DOMElement querySelector(string selectors)
querySelectorAll
DOMNodeList querySelectorAll(string selectors)
remove
void remove()
removeAttribute
void removeAttribute(string name)
removeAttributeNode
DOMAttr removeAttributeNode(DOMAttr oldAttr)
removeAttributeNs
void removeAttributeNs(string namespaceURI, string localName)
requestPointerLock
void requestPointerLock()
scrollByLines
void scrollByLines(glong lines)
scrollByPages
void scrollByPages(glong pages)
scrollIntoView
void scrollIntoView(bool alignWithTop)
scrollIntoViewIfNeeded
void scrollIntoViewIfNeeded(bool centerIfNeeded)
setAttribute
void setAttribute(string name, string value)
setAttributeNode
DOMAttr setAttributeNode(DOMAttr newAttr)
setAttributeNodeNs
DOMAttr setAttributeNodeNs(DOMAttr newAttr)
setAttributeNs
void setAttributeNs(string namespaceURI, string qualifiedName, string value)
setClassName
void setClassName(string value)
setId
void setId(string value)
setInnerHtml
void setInnerHtml(string value)
setOuterHtml
void setOuterHtml(string value)
setScrollLeft
void setScrollLeft(glong value)
setScrollTop
void setScrollTop(glong value)
webkitMatchesSelector
bool webkitMatchesSelector(string selectors)
webkitRequestFullscreen
void webkitRequestFullscreen()

Static functions

getType
GType getType()

Variables

webKitDOMElement
WebKitDOMElement* webKitDOMElement;

the main Gtk struct

Inherited Members

From DOMNode

webKitDOMNode
WebKitDOMNode* webKitDOMNode;

the main Gtk struct

getDOMNodeStruct
WebKitDOMNode* getDOMNodeStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin DOMEventTargetT!(WebKitDOMNode)
Undocumented in source.
getType
GType getType()
forJsValue
DOMNode forJsValue(Value value)

Get the #WebKitDOMNode for the DOM node referenced by @value.

appendChild
DOMNode appendChild(DOMNode newChild)
cloneNodeWithError
DOMNode cloneNodeWithError(bool deep)
compareDocumentPosition
ushort compareDocumentPosition(DOMNode other)
contains
bool contains(DOMNode other)
getBaseUri
string getBaseUri()
getChildNodes
DOMNodeList getChildNodes()
getFirstChild
DOMNode getFirstChild()
getLastChild
DOMNode getLastChild()
getLocalName
string getLocalName()
getNamespaceUri
string getNamespaceUri()
getNextSibling
DOMNode getNextSibling()
getNodeName
string getNodeName()
getNodeType
ushort getNodeType()
getNodeValue
string getNodeValue()
getOwnerDocument
DOMDocument getOwnerDocument()
getParentElement
DOMElement getParentElement()
getParentNode
DOMNode getParentNode()
getPrefix
string getPrefix()
getPreviousSibling
DOMNode getPreviousSibling()
getTextContent
string getTextContent()
hasChildNodes
bool hasChildNodes()
insertBefore
DOMNode insertBefore(DOMNode newChild, DOMNode refChild)
isDefaultNamespace
bool isDefaultNamespace(string namespaceURI)
isEqualNode
bool isEqualNode(DOMNode other)
isSameNode
bool isSameNode(DOMNode other)
isSupported
bool isSupported(string feature, string version_)
lookupNamespaceUri
string lookupNamespaceUri(string prefix)
lookupPrefix
string lookupPrefix(string namespaceURI)
normalize
void normalize()
removeChild
DOMNode removeChild(DOMNode oldChild)
replaceChild
DOMNode replaceChild(DOMNode newChild, DOMNode oldChild)
setNodeValue
void setNodeValue(string value)
setPrefix
void setPrefix(string value)
setTextContent
void setTextContent(string value)

Meta