[−][src]Trait stdweb::web::IElement
The IElement
interface represents an object of a Document.
This interface describes methods and properties common to all
kinds of elements.
Provided methods
fn namespace_uri(&self) -> Option<String>
The Element.namespaceURI read-only property returns the namespace URI of the element, or null if the element is not in a namespace.
fn class_list(&self) -> TokenList
The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element.
fn has_attribute(&self, name: &str) -> bool
The Element.hasAttribute() method returns a Boolean value indicating whether the specified element has the specified attribute or not.
fn get_attribute(&self, name: &str) -> Option<String>
Element.getAttribute() returns the value of a specified attribute on the element. If the given attribute does not exist, the value returned will either be null or "" (the empty string);
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
Sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
fn scroll_top(&self) -> f64
Gets the the number of pixels that an element's content is scrolled vertically.
fn set_scroll_top(&self, value: f64)
Sets the the number of pixels that an element's content is scrolled vertically.
fn scroll_left(&self) -> f64
Gets the the number of pixels that an element's content is scrolled to the left.
fn set_scroll_left(&self, value: f64)
Sets the the number of pixels that an element's content is scrolled to the left.
fn get_attribute_names(&self) -> Vec<String>
Element.getAttributeNames() returns the attribute names of the element as an Array of strings. If the element has no attributes it returns an empty array.
fn remove_attribute(&self, name: &str)
Element.removeAttribute removes an attribute from the specified element.
fn has_attributes(&self) -> bool
The Element.hasAttributes() method returns Boolean value, indicating if the current element has any attributes or not.
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
Returns the closest ancestor of the element (or the element itself) which matches the selectors
given in parameter. If there isn't such an ancestor, it returns
None
.
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
Designates a specific element as the capture target of future pointer events.
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
Releases pointer capture that was previously set for a specific pointer
fn has_pointer_capture(&self, pointer_id: i32) -> bool
Returns a boolean indicating if the element has captured the specified pointer
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
Insert nodes from HTML fragment into specified position.
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
Insert nodes from HTML fragment before element.
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
Insert nodes from HTML fragment as the first children of the element.
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
Insert nodes from HTML fragment as the last children of the element.
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
Insert nodes from HTML fragment after element.
fn slot(&self) -> String
The slot property of the Element interface returns the name of the shadow DOM slot the element is inserted in.
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
Attach a shadow DOM tree to the specified element and returns a reference to its ShadowRoot
.
It returns a shadow root if successfully attached or None
if the element cannot be attached.
fn shadow_root(&self) -> Option<ShadowRoot>
Returns the shadow root of the current element or None
.
Implementors
impl IElement for CanvasElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for ImageElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for InputElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for OptionElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for SelectElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for SlotElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for TemplateElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for TextAreaElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for Element
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
fn shadow_root(&self) -> Option<ShadowRoot>
[src]
impl IElement for HtmlElement
[src]
fn namespace_uri(&self) -> Option<String>
[src]
fn class_list(&self) -> TokenList
[src]
fn has_attribute(&self, name: &str) -> bool
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
[src]
&self,
name: &str,
value: &str
) -> Result<(), InvalidCharacterError>
fn scroll_top(&self) -> f64
[src]
fn set_scroll_top(&self, value: f64)
[src]
fn scroll_left(&self) -> f64
[src]
fn set_scroll_left(&self, value: f64)
[src]
fn get_attribute_names(&self) -> Vec<String>
[src]
fn remove_attribute(&self, name: &str)
[src]
fn has_attributes(&self) -> bool
[src]
fn closest(&self, selectors: &str) -> Result<Option<Element>, SyntaxError>
[src]
fn set_pointer_capture(&self, pointer_id: i32) -> Result<(), InvalidPointerId>
[src]
fn release_pointer_capture(
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
[src]
&self,
pointer_id: i32
) -> Result<(), InvalidPointerId>
fn has_pointer_capture(&self, pointer_id: i32) -> bool
[src]
fn insert_adjacent_html(
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
[src]
&self,
position: InsertPosition,
html: &str
) -> Result<(), InsertAdjacentError>
fn insert_html_before(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn prepend_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn append_html(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn insert_html_after(&self, html: &str) -> Result<(), InsertAdjacentError>
[src]
fn slot(&self) -> String
[src]
fn attach_shadow(
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>
[src]
&self,
mode: ShadowRootMode
) -> Result<ShadowRoot, AttachShadowError>