WebKit2WebExtension.DOMDOMTokenList

g GObject.Object GObject.Object WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMObject GObject.Object->WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMDOMTokenList WebKit2WebExtension.DOMDOMTokenList WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMDOMTokenList

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
  contains (token)
  get_length ()
  get_value ()
  item (index)
  replace (token, newToken)
  set_value (value)
  toggle (token, force)

Virtual Methods

Inherited:GObject.Object (7)

Properties

Inherited:WebKit2WebExtension.DOMObject (1)
Name Type Flags Short Description
length int r read-only int DOMTokenList:length
value str r/w read-write str DOMTokenList:value

Signals

Inherited:GObject.Object (1)

Fields

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

Class Details

class WebKit2WebExtension.DOMDOMTokenList(**kwargs)
Bases:WebKit2WebExtension.DOMObject
Abstract:No
Structure:WebKit2WebExtension.DOMDOMTokenListClass
contains(token)
Parameters:token (str) – A str
Returns:A bool
Return type:bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_length()
Returns:A int
Return type:int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_value()
Returns:A str
Return type:str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

item(index)
Parameters:index (int) – A int
Returns:A str
Return type:str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

replace(token, newToken)
Parameters:
Raises:

GLib.Error

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

set_value(value)
Parameters:value (str) – A str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

toggle(token, force)
Parameters:
Raises:

GLib.Error

Returns:

A bool

Return type:

bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

Property Details

WebKit2WebExtension.DOMDOMTokenList.props.length
Name:length
Type:int
Default Value:0
Flags:READABLE

read-only int DOMTokenList:length

WebKit2WebExtension.DOMDOMTokenList.props.value
Name:value
Type:str
Default Value:''
Flags:READABLE, WRITABLE

read-write str DOMTokenList:value