pub trait DOMDocumentExt: 'static {
Show 180 methods
fn adopt_node(&self, source: &impl IsA<DOMNode>) -> Result<DOMNode, Error>;
fn caret_range_from_point(&self, x: c_long, y: c_long) -> Option<DOMRange>;
fn create_attribute(&self, name: &str) -> Result<DOMAttr, Error>;
fn create_attribute_ns(
&self,
namespaceURI: Option<&str>,
qualifiedName: &str
) -> Result<DOMAttr, Error>;
fn create_cdata_section(&self, data: &str) -> Result<DOMCDATASection, Error>;
fn create_comment(&self, data: &str) -> Option<DOMComment>;
fn create_css_style_declaration(&self) -> Option<DOMCSSStyleDeclaration>;
fn create_document_fragment(&self) -> Option<DOMDocumentFragment>;
fn create_element(&self, tagName: &str) -> Result<DOMElement, Error>;
fn create_element_ns(
&self,
namespaceURI: Option<&str>,
qualifiedName: &str
) -> Result<DOMElement, Error>;
fn create_entity_reference(
&self,
name: Option<&str>
) -> Result<DOMEntityReference, Error>;
fn create_event(&self, eventType: &str) -> Result<DOMEvent, Error>;
fn create_expression(
&self,
expression: &str,
resolver: &impl IsA<DOMXPathNSResolver>
) -> Result<DOMXPathExpression, Error>;
fn create_node_iterator(
&self,
root: &impl IsA<DOMNode>,
whatToShow: c_ulong,
filter: Option<&impl IsA<DOMNodeFilter>>,
expandEntityReferences: bool
) -> Result<DOMNodeIterator, Error>;
fn create_ns_resolver(
&self,
nodeResolver: &impl IsA<DOMNode>
) -> Option<DOMXPathNSResolver>;
fn create_processing_instruction(
&self,
target: &str,
data: &str
) -> Result<DOMProcessingInstruction, Error>;
fn create_range(&self) -> Option<DOMRange>;
fn create_text_node(&self, data: &str) -> Option<DOMText>;
fn create_tree_walker(
&self,
root: &impl IsA<DOMNode>,
whatToShow: c_ulong,
filter: Option<&impl IsA<DOMNodeFilter>>,
expandEntityReferences: bool
) -> Result<DOMTreeWalker, Error>;
fn element_from_point(&self, x: c_long, y: c_long) -> Option<DOMElement>;
fn evaluate(
&self,
expression: &str,
contextNode: &impl IsA<DOMNode>,
resolver: Option<&impl IsA<DOMXPathNSResolver>>,
type_: c_ushort,
inResult: Option<&impl IsA<DOMXPathResult>>
) -> Result<DOMXPathResult, Error>;
fn exec_command(&self, command: &str, userInterface: bool, value: &str) -> bool;
fn exit_pointer_lock(&self);
fn active_element(&self) -> Option<DOMElement>;
fn anchors(&self) -> Option<DOMHTMLCollection>;
fn applets(&self) -> Option<DOMHTMLCollection>;
fn body(&self) -> Option<DOMHTMLElement>;
fn character_set(&self) -> Option<GString>;
fn charset(&self) -> Option<GString>;
fn child_element_count(&self) -> c_ulong;
fn children(&self) -> Option<DOMHTMLCollection>;
fn compat_mode(&self) -> Option<GString>;
fn content_type(&self) -> Option<GString>;
fn cookie(&self) -> Result<GString, Error>;
fn current_script(&self) -> Option<DOMHTMLScriptElement>;
fn default_charset(&self) -> Option<GString>;
fn default_view(&self) -> Option<DOMDOMWindow>;
fn design_mode(&self) -> Option<GString>;
fn dir(&self) -> Option<GString>;
fn doctype(&self) -> Option<DOMDocumentType>;
fn document_element(&self) -> Option<DOMElement>;
fn document_uri(&self) -> Option<GString>;
fn domain(&self) -> Option<GString>;
fn element_by_id(&self, elementId: &str) -> Option<DOMElement>;
fn elements_by_class_name(&self, class_name: &str) -> Option<DOMNodeList>;
fn elements_by_class_name_as_html_collection(
&self,
classNames: &str
) -> Option<DOMHTMLCollection>;
fn elements_by_name(&self, elementName: &str) -> Option<DOMNodeList>;
fn elements_by_tag_name(&self, tag_name: &str) -> Option<DOMNodeList>;
fn elements_by_tag_name_as_html_collection(
&self,
tagname: &str
) -> Option<DOMHTMLCollection>;
fn elements_by_tag_name_ns(
&self,
namespace_uri: &str,
tag_name: &str
) -> Option<DOMNodeList>;
fn elements_by_tag_name_ns_as_html_collection(
&self,
namespaceURI: &str,
localName: &str
) -> Option<DOMHTMLCollection>;
fn embeds(&self) -> Option<DOMHTMLCollection>;
fn first_element_child(&self) -> Option<DOMElement>;
fn forms(&self) -> Option<DOMHTMLCollection>;
fn head(&self) -> Option<DOMHTMLHeadElement>;
fn is_hidden(&self) -> bool;
fn images(&self) -> Option<DOMHTMLCollection>;
fn implementation(&self) -> Option<DOMDOMImplementation>;
fn input_encoding(&self) -> Option<GString>;
fn last_element_child(&self) -> Option<DOMElement>;
fn last_modified(&self) -> Option<GString>;
fn links(&self) -> Option<DOMHTMLCollection>;
fn origin(&self) -> Option<GString>;
fn override_style(
&self,
element: &impl IsA<DOMElement>,
pseudoElement: Option<&str>
) -> Option<DOMCSSStyleDeclaration>;
fn plugins(&self) -> Option<DOMHTMLCollection>;
fn pointer_lock_element(&self) -> Option<DOMElement>;
fn preferred_stylesheet_set(&self) -> Option<GString>;
fn ready_state(&self) -> Option<GString>;
fn referrer(&self) -> Option<GString>;
fn scripts(&self) -> Option<DOMHTMLCollection>;
fn scrolling_element(&self) -> Option<DOMElement>;
fn selected_stylesheet_set(&self) -> Option<GString>;
fn style_sheets(&self) -> Option<DOMStyleSheetList>;
fn title(&self) -> Option<GString>;
fn url(&self) -> Option<GString>;
fn visibility_state(&self) -> Option<GString>;
fn webkit_current_fullscreen_element(&self) -> Option<DOMElement>;
fn webkit_fullscreen_element(&self) -> Option<DOMElement>;
fn is_webkit_fullscreen_enabled(&self) -> bool;
fn is_webkit_fullscreen_keyboard_input_allowed(&self) -> bool;
fn is_webkit_is_fullscreen(&self) -> bool;
fn xml_encoding(&self) -> Option<GString>;
fn is_xml_standalone(&self) -> bool;
fn xml_version(&self) -> Option<GString>;
fn has_focus(&self) -> bool;
fn import_node(
&self,
importedNode: &impl IsA<DOMNode>,
deep: bool
) -> Result<DOMNode, Error>;
fn query_command_enabled(&self, command: &str) -> bool;
fn query_command_indeterm(&self, command: &str) -> bool;
fn query_command_state(&self, command: &str) -> bool;
fn query_command_supported(&self, command: &str) -> bool;
fn query_command_value(&self, command: &str) -> Option<GString>;
fn query_selector(&self, selectors: &str) -> Result<DOMElement, Error>;
fn query_selector_all(&self, selectors: &str) -> Result<DOMNodeList, Error>;
fn set_body(&self, value: &impl IsA<DOMHTMLElement>) -> Result<(), Error>;
fn set_charset(&self, value: &str);
fn set_cookie(&self, value: &str) -> Result<(), Error>;
fn set_design_mode(&self, value: &str);
fn set_dir(&self, value: &str);
fn set_document_uri(&self, value: &str);
fn set_selected_stylesheet_set(&self, value: &str);
fn set_title(&self, value: &str);
fn set_xml_standalone(&self, value: bool) -> Result<(), Error>;
fn set_xml_version(&self, value: &str) -> Result<(), Error>;
fn webkit_cancel_fullscreen(&self);
fn webkit_exit_fullscreen(&self);
fn get_property_child_element_count(&self) -> c_ulong;
fn get_property_children(&self) -> Option<DOMHTMLCollection>;
fn get_property_compat_mode(&self) -> Option<GString>;
fn get_property_content_type(&self) -> Option<GString>;
fn get_property_current_script(&self) -> Option<DOMHTMLScriptElement>;
fn get_property_design_mode(&self) -> Option<GString>;
fn set_property_design_mode(&self, design_mode: Option<&str>);
fn get_property_dir(&self) -> Option<GString>;
fn set_property_dir(&self, dir: Option<&str>);
fn get_property_embeds(&self) -> Option<DOMHTMLCollection>;
fn get_property_first_element_child(&self) -> Option<DOMElement>;
fn get_property_hidden(&self) -> bool;
fn get_property_last_element_child(&self) -> Option<DOMElement>;
fn get_property_origin(&self) -> Option<GString>;
fn get_property_plugins(&self) -> Option<DOMHTMLCollection>;
fn get_property_pointer_lock_element(&self) -> Option<DOMElement>;
fn get_property_scripts(&self) -> Option<DOMHTMLCollection>;
fn get_property_scrolling_element(&self) -> Option<DOMElement>;
fn get_property_visibility_state(&self) -> Option<GString>;
fn webkit_current_full_screen_element(&self) -> Option<DOMElement>;
fn is_webkit_full_screen_keyboard_input_allowed(&self) -> bool;
fn get_property_webkit_fullscreen_element(&self) -> Option<DOMElement>;
fn get_property_webkit_fullscreen_enabled(&self) -> bool;
fn is_webkit_is_full_screen(&self) -> bool;
fn connect_active_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_anchors_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_applets_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_body_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_character_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_charset_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_child_element_count_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_children_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_compat_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_content_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_cookie_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_current_script_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_default_view_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_design_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_dir_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_doctype_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_document_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_document_uri_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_domain_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_embeds_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_first_element_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_forms_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_head_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_hidden_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_images_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_implementation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_input_encoding_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_last_element_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_last_modified_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_links_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_origin_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_plugins_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_pointer_lock_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_preferred_stylesheet_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_ready_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_referrer_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_scripts_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_scrolling_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_selected_stylesheet_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_style_sheets_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_url_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_visibility_state_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_webkit_current_full_screen_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_webkit_full_screen_keyboard_input_allowed_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_webkit_fullscreen_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_webkit_fullscreen_enabled_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_webkit_is_full_screen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_xml_encoding_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_xml_standalone_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_xml_version_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn caret_range_from_point(&self, x: c_long, y: c_long) -> Option<DOMRange>
fn caret_range_from_point(&self, x: c_long, y: c_long) -> Option<DOMRange>
v2_16
only.sourcefn create_attribute_ns(
&self,
namespaceURI: Option<&str>,
qualifiedName: &str
) -> Result<DOMAttr, Error>
fn create_attribute_ns(
&self,
namespaceURI: Option<&str>,
qualifiedName: &str
) -> Result<DOMAttr, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
namespaceURI
A gchar
qualifiedName
A gchar
Returns
A DOMAttr
sourcefn create_cdata_section(&self, data: &str) -> Result<DOMCDATASection, Error>
fn create_cdata_section(&self, data: &str) -> Result<DOMCDATASection, Error>
sourcefn create_comment(&self, data: &str) -> Option<DOMComment>
fn create_comment(&self, data: &str) -> Option<DOMComment>
sourcefn create_css_style_declaration(&self) -> Option<DOMCSSStyleDeclaration>
fn create_css_style_declaration(&self) -> Option<DOMCSSStyleDeclaration>
sourcefn create_document_fragment(&self) -> Option<DOMDocumentFragment>
fn create_document_fragment(&self) -> Option<DOMDocumentFragment>
v2_16
only.sourcefn create_element(&self, tagName: &str) -> Result<DOMElement, Error>
fn create_element(&self, tagName: &str) -> Result<DOMElement, Error>
sourcefn create_element_ns(
&self,
namespaceURI: Option<&str>,
qualifiedName: &str
) -> Result<DOMElement, Error>
fn create_element_ns(
&self,
namespaceURI: Option<&str>,
qualifiedName: &str
) -> Result<DOMElement, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
namespaceURI
A gchar
qualifiedName
A gchar
Returns
sourcefn create_entity_reference(
&self,
name: Option<&str>
) -> Result<DOMEntityReference, Error>
fn create_entity_reference(
&self,
name: Option<&str>
) -> Result<DOMEntityReference, Error>
This function has been removed from the DOM spec and it just returns None
.
Deprecated since 2.12
name
A gchar
Returns
sourcefn create_expression(
&self,
expression: &str,
resolver: &impl IsA<DOMXPathNSResolver>
) -> Result<DOMXPathExpression, Error>
fn create_expression(
&self,
expression: &str,
resolver: &impl IsA<DOMXPathNSResolver>
) -> Result<DOMXPathExpression, Error>
sourcefn create_node_iterator(
&self,
root: &impl IsA<DOMNode>,
whatToShow: c_ulong,
filter: Option<&impl IsA<DOMNodeFilter>>,
expandEntityReferences: bool
) -> Result<DOMNodeIterator, Error>
fn create_node_iterator(
&self,
root: &impl IsA<DOMNode>,
whatToShow: c_ulong,
filter: Option<&impl IsA<DOMNodeFilter>>,
expandEntityReferences: bool
) -> Result<DOMNodeIterator, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
root
A DOMNode
whatToShow
A gulong
filter
expandEntityReferences
A gboolean
Returns
sourcefn create_ns_resolver(
&self,
nodeResolver: &impl IsA<DOMNode>
) -> Option<DOMXPathNSResolver>
fn create_ns_resolver(
&self,
nodeResolver: &impl IsA<DOMNode>
) -> Option<DOMXPathNSResolver>
sourcefn create_processing_instruction(
&self,
target: &str,
data: &str
) -> Result<DOMProcessingInstruction, Error>
fn create_processing_instruction(
&self,
target: &str,
data: &str
) -> Result<DOMProcessingInstruction, Error>
sourcefn create_range(&self) -> Option<DOMRange>
fn create_range(&self) -> Option<DOMRange>
sourcefn create_text_node(&self, data: &str) -> Option<DOMText>
fn create_text_node(&self, data: &str) -> Option<DOMText>
sourcefn create_tree_walker(
&self,
root: &impl IsA<DOMNode>,
whatToShow: c_ulong,
filter: Option<&impl IsA<DOMNodeFilter>>,
expandEntityReferences: bool
) -> Result<DOMTreeWalker, Error>
fn create_tree_walker(
&self,
root: &impl IsA<DOMNode>,
whatToShow: c_ulong,
filter: Option<&impl IsA<DOMNodeFilter>>,
expandEntityReferences: bool
) -> Result<DOMTreeWalker, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
root
A DOMNode
whatToShow
A gulong
filter
expandEntityReferences
A gboolean
Returns
sourcefn element_from_point(&self, x: c_long, y: c_long) -> Option<DOMElement>
fn element_from_point(&self, x: c_long, y: c_long) -> Option<DOMElement>
sourcefn evaluate(
&self,
expression: &str,
contextNode: &impl IsA<DOMNode>,
resolver: Option<&impl IsA<DOMXPathNSResolver>>,
type_: c_ushort,
inResult: Option<&impl IsA<DOMXPathResult>>
) -> Result<DOMXPathResult, Error>
fn evaluate(
&self,
expression: &str,
contextNode: &impl IsA<DOMNode>,
resolver: Option<&impl IsA<DOMXPathNSResolver>>,
type_: c_ushort,
inResult: Option<&impl IsA<DOMXPathResult>>
) -> Result<DOMXPathResult, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
expression
A gchar
contextNode
A DOMNode
resolver
type_
A gushort
inResult
Returns
sourcefn exec_command(&self, command: &str, userInterface: bool, value: &str) -> bool
fn exec_command(&self, command: &str, userInterface: bool, value: &str) -> bool
Deprecated since 2.22
Use JavaScriptCore API instead
command
A gchar
userInterface
A gboolean
value
A gchar
Returns
A gboolean
sourcefn exit_pointer_lock(&self)
fn exit_pointer_lock(&self)
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn active_element(&self) -> Option<DOMElement>
fn active_element(&self) -> Option<DOMElement>
sourcefn anchors(&self) -> Option<DOMHTMLCollection>
fn anchors(&self) -> Option<DOMHTMLCollection>
sourcefn applets(&self) -> Option<DOMHTMLCollection>
fn applets(&self) -> Option<DOMHTMLCollection>
sourcefn body(&self) -> Option<DOMHTMLElement>
fn body(&self) -> Option<DOMHTMLElement>
sourcefn character_set(&self) -> Option<GString>
fn character_set(&self) -> Option<GString>
sourcefn child_element_count(&self) -> c_ulong
fn child_element_count(&self) -> c_ulong
v2_16
only.sourcefn children(&self) -> Option<DOMHTMLCollection>
fn children(&self) -> Option<DOMHTMLCollection>
v2_16
only.sourcefn compat_mode(&self) -> Option<GString>
fn compat_mode(&self) -> Option<GString>
v2_14
only.sourcefn content_type(&self) -> Option<GString>
fn content_type(&self) -> Option<GString>
v2_16
only.sourcefn current_script(&self) -> Option<DOMHTMLScriptElement>
fn current_script(&self) -> Option<DOMHTMLScriptElement>
v2_16
only.sourcefn default_charset(&self) -> Option<GString>
fn default_charset(&self) -> Option<GString>
sourcefn default_view(&self) -> Option<DOMDOMWindow>
fn default_view(&self) -> Option<DOMDOMWindow>
sourcefn design_mode(&self) -> Option<GString>
fn design_mode(&self) -> Option<GString>
v2_14
only.sourcefn doctype(&self) -> Option<DOMDocumentType>
fn doctype(&self) -> Option<DOMDocumentType>
sourcefn document_element(&self) -> Option<DOMElement>
fn document_element(&self) -> Option<DOMElement>
sourcefn document_uri(&self) -> Option<GString>
fn document_uri(&self) -> Option<GString>
sourcefn element_by_id(&self, elementId: &str) -> Option<DOMElement>
fn element_by_id(&self, elementId: &str) -> Option<DOMElement>
sourcefn elements_by_class_name(&self, class_name: &str) -> Option<DOMNodeList>
fn elements_by_class_name(&self, class_name: &str) -> Option<DOMNodeList>
Deprecated since 2.12
Use elements_by_class_name_as_html_collection()
instead.
class_name
a gchar
with the tag name
Returns
sourcefn elements_by_class_name_as_html_collection(
&self,
classNames: &str
) -> Option<DOMHTMLCollection>
fn elements_by_class_name_as_html_collection(
&self,
classNames: &str
) -> Option<DOMHTMLCollection>
v2_12
only.sourcefn elements_by_name(&self, elementName: &str) -> Option<DOMNodeList>
fn elements_by_name(&self, elementName: &str) -> Option<DOMNodeList>
sourcefn elements_by_tag_name(&self, tag_name: &str) -> Option<DOMNodeList>
fn elements_by_tag_name(&self, tag_name: &str) -> Option<DOMNodeList>
Deprecated since 2.12
Use elements_by_tag_name_as_html_collection()
instead.
tag_name
a gchar
with the tag name
Returns
sourcefn elements_by_tag_name_as_html_collection(
&self,
tagname: &str
) -> Option<DOMHTMLCollection>
fn elements_by_tag_name_as_html_collection(
&self,
tagname: &str
) -> Option<DOMHTMLCollection>
v2_12
only.sourcefn elements_by_tag_name_ns(
&self,
namespace_uri: &str,
tag_name: &str
) -> Option<DOMNodeList>
fn elements_by_tag_name_ns(
&self,
namespace_uri: &str,
tag_name: &str
) -> Option<DOMNodeList>
Deprecated since 2.12
Use elements_by_tag_name_ns_as_html_collection()
instead.
namespace_uri
a gchar
with the namespace URI
tag_name
a gchar
with the tag name
Returns
sourcefn elements_by_tag_name_ns_as_html_collection(
&self,
namespaceURI: &str,
localName: &str
) -> Option<DOMHTMLCollection>
fn elements_by_tag_name_ns_as_html_collection(
&self,
namespaceURI: &str,
localName: &str
) -> Option<DOMHTMLCollection>
v2_12
only.sourcefn embeds(&self) -> Option<DOMHTMLCollection>
fn embeds(&self) -> Option<DOMHTMLCollection>
v2_14
only.sourcefn first_element_child(&self) -> Option<DOMElement>
fn first_element_child(&self) -> Option<DOMElement>
v2_16
only.sourcefn forms(&self) -> Option<DOMHTMLCollection>
fn forms(&self) -> Option<DOMHTMLCollection>
sourcefn head(&self) -> Option<DOMHTMLHeadElement>
fn head(&self) -> Option<DOMHTMLHeadElement>
v2_16
only.sourcefn images(&self) -> Option<DOMHTMLCollection>
fn images(&self) -> Option<DOMHTMLCollection>
sourcefn implementation(&self) -> Option<DOMDOMImplementation>
fn implementation(&self) -> Option<DOMDOMImplementation>
sourcefn input_encoding(&self) -> Option<GString>
fn input_encoding(&self) -> Option<GString>
sourcefn last_element_child(&self) -> Option<DOMElement>
fn last_element_child(&self) -> Option<DOMElement>
v2_16
only.sourcefn last_modified(&self) -> Option<GString>
fn last_modified(&self) -> Option<GString>
sourcefn links(&self) -> Option<DOMHTMLCollection>
fn links(&self) -> Option<DOMHTMLCollection>
sourcefn override_style(
&self,
element: &impl IsA<DOMElement>,
pseudoElement: Option<&str>
) -> Option<DOMCSSStyleDeclaration>
fn override_style(
&self,
element: &impl IsA<DOMElement>,
pseudoElement: Option<&str>
) -> Option<DOMCSSStyleDeclaration>
sourcefn plugins(&self) -> Option<DOMHTMLCollection>
fn plugins(&self) -> Option<DOMHTMLCollection>
v2_14
only.sourcefn pointer_lock_element(&self) -> Option<DOMElement>
fn pointer_lock_element(&self) -> Option<DOMElement>
v2_16
only.sourcefn preferred_stylesheet_set(&self) -> Option<GString>
fn preferred_stylesheet_set(&self) -> Option<GString>
This function has been removed and does nothing.
Deprecated since 2.22
Use JavaScriptCore API instead
Returns
A gchar
sourcefn ready_state(&self) -> Option<GString>
fn ready_state(&self) -> Option<GString>
sourcefn scripts(&self) -> Option<DOMHTMLCollection>
fn scripts(&self) -> Option<DOMHTMLCollection>
v2_14
only.sourcefn scrolling_element(&self) -> Option<DOMElement>
fn scrolling_element(&self) -> Option<DOMElement>
v2_16
only.sourcefn selected_stylesheet_set(&self) -> Option<GString>
fn selected_stylesheet_set(&self) -> Option<GString>
This function has been removed and does nothing.
Deprecated since 2.22
Use JavaScriptCore API instead
Returns
A gchar
sourcefn style_sheets(&self) -> Option<DOMStyleSheetList>
fn style_sheets(&self) -> Option<DOMStyleSheetList>
sourcefn visibility_state(&self) -> Option<GString>
fn visibility_state(&self) -> Option<GString>
v2_16
only.sourcefn webkit_current_fullscreen_element(&self) -> Option<DOMElement>
fn webkit_current_fullscreen_element(&self) -> Option<DOMElement>
v2_16
only.sourcefn webkit_fullscreen_element(&self) -> Option<DOMElement>
fn webkit_fullscreen_element(&self) -> Option<DOMElement>
v2_16
only.sourcefn is_webkit_fullscreen_enabled(&self) -> bool
fn is_webkit_fullscreen_enabled(&self) -> bool
v2_16
only.sourcefn is_webkit_fullscreen_keyboard_input_allowed(&self) -> bool
fn is_webkit_fullscreen_keyboard_input_allowed(&self) -> bool
v2_16
only.sourcefn is_webkit_is_fullscreen(&self) -> bool
fn is_webkit_is_fullscreen(&self) -> bool
v2_16
only.sourcefn xml_encoding(&self) -> Option<GString>
fn xml_encoding(&self) -> Option<GString>
sourcefn is_xml_standalone(&self) -> bool
fn is_xml_standalone(&self) -> bool
sourcefn xml_version(&self) -> Option<GString>
fn xml_version(&self) -> Option<GString>
sourcefn import_node(
&self,
importedNode: &impl IsA<DOMNode>,
deep: bool
) -> Result<DOMNode, Error>
fn import_node(
&self,
importedNode: &impl IsA<DOMNode>,
deep: bool
) -> Result<DOMNode, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
importedNode
A DOMNode
deep
A gboolean
Returns
A DOMNode
sourcefn query_command_enabled(&self, command: &str) -> bool
fn query_command_enabled(&self, command: &str) -> bool
sourcefn query_command_indeterm(&self, command: &str) -> bool
fn query_command_indeterm(&self, command: &str) -> bool
sourcefn query_command_state(&self, command: &str) -> bool
fn query_command_state(&self, command: &str) -> bool
sourcefn query_command_supported(&self, command: &str) -> bool
fn query_command_supported(&self, command: &str) -> bool
sourcefn query_command_value(&self, command: &str) -> Option<GString>
fn query_command_value(&self, command: &str) -> Option<GString>
sourcefn query_selector(&self, selectors: &str) -> Result<DOMElement, Error>
fn query_selector(&self, selectors: &str) -> Result<DOMElement, Error>
sourcefn query_selector_all(&self, selectors: &str) -> Result<DOMNodeList, Error>
fn query_selector_all(&self, selectors: &str) -> Result<DOMNodeList, Error>
sourcefn set_charset(&self, value: &str)
fn set_charset(&self, value: &str)
sourcefn set_design_mode(&self, value: &str)
fn set_design_mode(&self, value: &str)
v2_14
only.sourcefn set_document_uri(&self, value: &str)
fn set_document_uri(&self, value: &str)
sourcefn set_selected_stylesheet_set(&self, value: &str)
fn set_selected_stylesheet_set(&self, value: &str)
This function has been removed and does nothing.
Deprecated since 2.22
Use JavaScriptCore API instead
value
A gchar
sourcefn webkit_cancel_fullscreen(&self)
fn webkit_cancel_fullscreen(&self)
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn webkit_exit_fullscreen(&self)
fn webkit_exit_fullscreen(&self)
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead