WebKit2WebExtension.DOMText

g GObject.GInterface GObject.GInterface WebKit2WebExtension.DOMEventTarget WebKit2WebExtension.DOMEventTarget GObject.GInterface->WebKit2WebExtension.DOMEventTarget GObject.Object GObject.Object WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMObject GObject.Object->WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMCharacterData WebKit2WebExtension.DOMCharacterData WebKit2WebExtension.DOMText WebKit2WebExtension.DOMText WebKit2WebExtension.DOMCharacterData->WebKit2WebExtension.DOMText WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMEventTarget->WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMNode->WebKit2WebExtension.DOMCharacterData WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMNode

Subclasses:WebKit2WebExtension.DOMCDATASection

Properties

Inherited:WebKit2WebExtension.DOMCharacterData (2), WebKit2WebExtension.DOMNode (13), WebKit2WebExtension.DOMObject (1)
Name Type Flags Short Description
whole-text str r read-only str Text:whole-text

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance WebKit2WebExtension.DOMCharacterData r  

Class Details

class WebKit2WebExtension.DOMText(**kwargs)
Bases:WebKit2WebExtension.DOMCharacterData
Abstract:No
Structure:WebKit2WebExtension.DOMTextClass
get_whole_text()
Returns:A str
Return type:str

Deprecated since version 2.22: Use JavaScriptCore API instead

replace_whole_text(content)
Parameters:content (str) – A str
Raises:GLib.Error
Returns:A WebKit2WebExtension.DOMText
Return type:WebKit2WebExtension.DOMText

Deprecated since version 2.14.

split_text(offset)
Parameters:offset (int) – A int
Raises:GLib.Error
Returns:A WebKit2WebExtension.DOMText
Return type:WebKit2WebExtension.DOMText

Deprecated since version 2.22: Use JavaScriptCore API instead

Property Details

WebKit2WebExtension.DOMText.props.whole_text
Name:whole-text
Type:str
Default Value:''
Flags:READABLE

read-only str Text:whole-text