gi-webkit2webextension-4.0.24: WebKit2-WebExtension bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.DOMNode

Description

No description available in the introspection data.

Synopsis

Exported types

newtype DOMNode Source #

Memory-managed wrapper type.

Constructors

DOMNode (ManagedPtr DOMNode) 

class (GObject o, IsDescendantOf DOMNode o) => IsDOMNode o Source #

Type class for types which can be safely cast to DOMNode, for instance with toDOMNode.

Instances

Instances details
(GObject o, IsDescendantOf DOMNode o) => IsDOMNode o Source # 
Instance details

Defined in GI.WebKit2WebExtension.Objects.DOMNode

toDOMNode :: (MonadIO m, IsDOMNode o) => o -> m DOMNode Source #

Cast to DOMNode, for types for which this is known to be safe. For general casts, use castTo.

noDOMNode :: Maybe DOMNode Source #

A convenience alias for Nothing :: Maybe DOMNode.

Methods

Overloaded methods

appendChild

dOMNodeAppendChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b) 
=> a

self: A DOMNode

-> b

newChild: A DOMNode

-> m DOMNode

Returns: A DOMNode (Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

cloneNodeWithError

dOMNodeCloneNodeWithError Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Bool

deep: A Bool

-> m DOMNode

Returns: A DOMNode (Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

Since: 2.14

compareDocumentPosition

dOMNodeCompareDocumentPosition Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b) 
=> a

self: A DOMNode

-> b

other: A DOMNode

-> m Word16

Returns: A gushort

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

contains

dOMNodeContains Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b) 
=> a

self: A DOMNode

-> b

other: A DOMNode

-> m Bool

Returns: A Bool

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

forJsValue

dOMNodeForJsValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsValue a) 
=> a

value: a Value

-> m DOMNode

Returns: a DOMNode, or Nothing if value doesn't reference a DOM node.

Get the DOMNode for the DOM node referenced by value.

Since: 2.22

getBaseUri

dOMNodeGetBaseUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getChildNodes

dOMNodeGetChildNodes Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMNodeList

Returns: A DOMNodeList

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getFirstChild

dOMNodeGetFirstChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMNode

Returns: A DOMNode

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getLastChild

dOMNodeGetLastChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMNode

Returns: A DOMNode

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getLocalName

dOMNodeGetLocalName Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.14)Use dOMAttrGetLocalName or dOMElementGetLocalName instead.

No description available in the introspection data.

getNamespaceUri

dOMNodeGetNamespaceUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.14)Use dOMAttrGetNamespaceUri or dOMElementGetNamespaceUri instead.

No description available in the introspection data.

getNextSibling

dOMNodeGetNextSibling Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMNode

Returns: A DOMNode

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getNodeName

dOMNodeGetNodeName Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getNodeType

dOMNodeGetNodeType Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Word16

Returns: A gushort

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getNodeValue

dOMNodeGetNodeValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getOwnerDocument

dOMNodeGetOwnerDocument Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMDocument

Returns: A DOMDocument

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getParentElement

dOMNodeGetParentElement Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMElement

Returns: A DOMElement

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getParentNode

dOMNodeGetParentNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMNode

Returns: A DOMNode

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getPrefix

dOMNodeGetPrefix Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.14)Use dOMAttrGetPrefix or dOMElementGetPrefix instead.

No description available in the introspection data.

getPreviousSibling

dOMNodeGetPreviousSibling Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m DOMNode

Returns: A DOMNode

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

getTextContent

dOMNodeGetTextContent Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Text

Returns: A gchar

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

hasChildNodes

dOMNodeHasChildNodes Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m Bool

Returns: A Bool

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

insertBefore

dOMNodeInsertBefore Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b, IsDOMNode c) 
=> a

self: A DOMNode

-> b

newChild: A DOMNode

-> Maybe c

refChild: A DOMNode

-> m DOMNode

Returns: A DOMNode (Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

isDefaultNamespace

dOMNodeIsDefaultNamespace Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

namespaceURI: A gchar

-> m Bool

Returns: A Bool

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

isEqualNode

dOMNodeIsEqualNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b) 
=> a

self: A DOMNode

-> b

other: A DOMNode

-> m Bool

Returns: A Bool

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

isSameNode

dOMNodeIsSameNode Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b) 
=> a

self: A DOMNode

-> b

other: A DOMNode

-> m Bool

Returns: A Bool

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

isSupported

dOMNodeIsSupported Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

feature: A gchar

-> Text

version: A gchar

-> m Bool

Returns: A Bool

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

lookupNamespaceUri

dOMNodeLookupNamespaceUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

prefix: A gchar

-> m Text

Returns: A gchar

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

lookupPrefix

dOMNodeLookupPrefix Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

namespaceURI: A gchar

-> m Text

Returns: A gchar

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

normalize

dOMNodeNormalize Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> m () 

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

removeChild

dOMNodeRemoveChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b) 
=> a

self: A DOMNode

-> b

oldChild: A DOMNode

-> m DOMNode

Returns: A DOMNode (Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

replaceChild

dOMNodeReplaceChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a, IsDOMNode b, IsDOMNode c) 
=> a

self: A DOMNode

-> b

newChild: A DOMNode

-> c

oldChild: A DOMNode

-> m DOMNode

Returns: A DOMNode (Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

setNodeValue

dOMNodeSetNodeValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

value: A gchar

-> m ()

(Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

setPrefix

dOMNodeSetPrefix Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

value: A gchar

-> m ()

(Can throw GError)

Deprecated: (Since version 2.14)

No description available in the introspection data.

setTextContent

dOMNodeSetTextContent Source #

Arguments

:: (HasCallStack, MonadIO m, IsDOMNode a) 
=> a

self: A DOMNode

-> Text

value: A gchar

-> m ()

(Can throw GError)

Deprecated: (Since version 2.22)Use JavaScriptCore API instead

No description available in the introspection data.

Properties

baseUri

No description available in the introspection data.

getDOMNodeBaseUri :: (MonadIO m, IsDOMNode o) => o -> m (Maybe Text) Source #

Get the value of the “base-uri” property. When overloading is enabled, this is equivalent to

get dOMNode #baseUri

childNodes

No description available in the introspection data.

getDOMNodeChildNodes :: (MonadIO m, IsDOMNode o) => o -> m (Maybe DOMNodeList) Source #

Get the value of the “child-nodes” property. When overloading is enabled, this is equivalent to

get dOMNode #childNodes

firstChild

No description available in the introspection data.

getDOMNodeFirstChild :: (MonadIO m, IsDOMNode o) => o -> m DOMNode Source #

Get the value of the “first-child” property. When overloading is enabled, this is equivalent to

get dOMNode #firstChild

lastChild

No description available in the introspection data.

getDOMNodeLastChild :: (MonadIO m, IsDOMNode o) => o -> m DOMNode Source #

Get the value of the “last-child” property. When overloading is enabled, this is equivalent to

get dOMNode #lastChild

nextSibling

No description available in the introspection data.

getDOMNodeNextSibling :: (MonadIO m, IsDOMNode o) => o -> m DOMNode Source #

Get the value of the “next-sibling” property. When overloading is enabled, this is equivalent to

get dOMNode #nextSibling

nodeName

No description available in the introspection data.

getDOMNodeNodeName :: (MonadIO m, IsDOMNode o) => o -> m (Maybe Text) Source #

Get the value of the “node-name” property. When overloading is enabled, this is equivalent to

get dOMNode #nodeName

nodeType

No description available in the introspection data.

getDOMNodeNodeType :: (MonadIO m, IsDOMNode o) => o -> m Word32 Source #

Get the value of the “node-type” property. When overloading is enabled, this is equivalent to

get dOMNode #nodeType

nodeValue

No description available in the introspection data.

clearDOMNodeNodeValue :: (MonadIO m, IsDOMNode o) => o -> m () Source #

Set the value of the “node-value” property to Nothing. When overloading is enabled, this is equivalent to

clear #nodeValue

constructDOMNodeNodeValue :: IsDOMNode o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “node-value” property. This is rarely needed directly, but it is used by new.

getDOMNodeNodeValue :: (MonadIO m, IsDOMNode o) => o -> m (Maybe Text) Source #

Get the value of the “node-value” property. When overloading is enabled, this is equivalent to

get dOMNode #nodeValue

setDOMNodeNodeValue :: (MonadIO m, IsDOMNode o) => o -> Text -> m () Source #

Set the value of the “node-value” property. When overloading is enabled, this is equivalent to

set dOMNode [ #nodeValue := value ]

ownerDocument

No description available in the introspection data.

getDOMNodeOwnerDocument :: (MonadIO m, IsDOMNode o) => o -> m DOMDocument Source #

Get the value of the “owner-document” property. When overloading is enabled, this is equivalent to

get dOMNode #ownerDocument

parentElement

No description available in the introspection data.

getDOMNodeParentElement :: (MonadIO m, IsDOMNode o) => o -> m DOMElement Source #

Get the value of the “parent-element” property. When overloading is enabled, this is equivalent to

get dOMNode #parentElement

parentNode

No description available in the introspection data.

getDOMNodeParentNode :: (MonadIO m, IsDOMNode o) => o -> m DOMNode Source #

Get the value of the “parent-node” property. When overloading is enabled, this is equivalent to

get dOMNode #parentNode

previousSibling

No description available in the introspection data.

getDOMNodePreviousSibling :: (MonadIO m, IsDOMNode o) => o -> m DOMNode Source #

Get the value of the “previous-sibling” property. When overloading is enabled, this is equivalent to

get dOMNode #previousSibling

textContent

No description available in the introspection data.

clearDOMNodeTextContent :: (MonadIO m, IsDOMNode o) => o -> m () Source #

Set the value of the “text-content” property to Nothing. When overloading is enabled, this is equivalent to

clear #textContent

constructDOMNodeTextContent :: IsDOMNode o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “text-content” property. This is rarely needed directly, but it is used by new.

getDOMNodeTextContent :: (MonadIO m, IsDOMNode o) => o -> m (Maybe Text) Source #

Get the value of the “text-content” property. When overloading is enabled, this is equivalent to

get dOMNode #textContent

setDOMNodeTextContent :: (MonadIO m, IsDOMNode o) => o -> Text -> m () Source #

Set the value of the “text-content” property. When overloading is enabled, this is equivalent to

set dOMNode [ #textContent := value ]