Struct script::dom::element::Element [−][src]
Fields
node: Node
local_name: LocalName
tag_name: TagName
namespace: Namespace
prefix: DomRefCell<Option<Prefix>>
attrs: DomRefCell<Vec<Dom<Attr>>>
id_attribute: DomRefCell<Option<Atom>>
is: DomRefCell<Option<LocalName>>
style_attribute: DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>
attr_list: MutNullableDom<NamedNodeMap>
class_list: MutNullableDom<DOMTokenList>
state: Cell<ElementState>
selector_flags: Cell<ElementSelectorFlags>
These flags are set by the style system to indicate the that certain operations may require restyling this element or its descendants. The flags are not atomic, so the style system takes care of only set them when it has exclusive access to the element.
rare_data: DomRefCell<Option<Box<ElementRareData>>>
Implementations
impl Element
[src]
fn __assert_parent_type(&self)
[src]
impl Element
[src]
fn click_event_filter_by_disabled_state(&self) -> bool
[src]
impl Element
[src]
pub fn create(
name: QualName,
is: Option<LocalName>,
document: &Document,
creator: ElementCreator,
mode: CustomElementCreationMode
) -> Root<Dom<Element>>
[src]
name: QualName,
is: Option<LocalName>,
document: &Document,
creator: ElementCreator,
mode: CustomElementCreationMode
) -> Root<Dom<Element>>
pub fn new_inherited(
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Element
[src]
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Element
pub fn new_inherited_with_state(
state: ElementState,
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Element
[src]
state: ElementState,
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Element
pub fn new(
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Root<Dom<Element>>
[src]
local_name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
document: &Document
) -> Root<Dom<Element>>
fn rare_data(&self) -> Ref<'_, Option<Box<ElementRareData>>>
[src]
fn rare_data_mut(&self) -> RefMut<'_, Option<Box<ElementRareData>>>
[src]
fn ensure_rare_data(&self) -> RefMut<'_, Box<ElementRareData>>
[src]
pub fn restyle(&self, damage: NodeDamage)
[src]
pub fn set_is(&self, is: LocalName)
[src]
pub fn get_is(&self) -> Option<LocalName>
[src]
pub fn set_custom_element_state(&self, state: CustomElementState)
[src]
pub fn get_custom_element_state(&self) -> CustomElementState
[src]
pub fn set_custom_element_definition(
&self,
definition: Rc<CustomElementDefinition>
)
[src]
&self,
definition: Rc<CustomElementDefinition>
)
pub fn get_custom_element_definition(
&self
) -> Option<Rc<CustomElementDefinition>>
[src]
&self
) -> Option<Rc<CustomElementDefinition>>
pub fn clear_custom_element_definition(&self)
[src]
pub fn push_callback_reaction(
&self,
function: Rc<Function>,
args: Box<[Heap<JSVal>]>
)
[src]
&self,
function: Rc<Function>,
args: Box<[Heap<JSVal>]>
)
pub fn push_upgrade_reaction(&self, definition: Rc<CustomElementDefinition>)
[src]
pub fn clear_reaction_queue(&self)
[src]
pub fn invoke_reactions(&self)
[src]
pub fn style(&self) -> Option<Arc<ComputedValues>>
[src]
style will be None
for elements in a display: none
subtree. otherwise, the element has a
layout box iff it doesn’t have display: none
.
pub fn has_css_layout_box(&self) -> bool
[src]
fn potentially_scrollable(&self) -> bool
[src]
fn has_scrolling_box(&self) -> bool
[src]
fn has_overflow(&self) -> bool
[src]
fn has_any_visible_overflow(&self) -> bool
[src]
Computed value of overflow-x or overflow-y is “visible”
fn has_any_hidden_overflow(&self) -> bool
[src]
Computed value of overflow-x or overflow-y is “hidden”
fn shadow_root(&self) -> Option<Root<Dom<ShadowRoot>>>
[src]
pub fn is_shadow_host(&self) -> bool
[src]
pub fn attach_shadow(
&self,
is_ua_widget: IsUserAgentWidget
) -> Result<Root<Dom<ShadowRoot>>, Error>
[src]
&self,
is_ua_widget: IsUserAgentWidget
) -> Result<Root<Dom<ShadowRoot>>, Error>
https://dom.spec.whatwg.org/#dom-element-attachshadow XXX This is not exposed to web content yet. It is meant to be used for UA widgets only.
pub fn detach_shadow(&self)
[src]
pub fn is_translate_enabled(&self) -> bool
[src]
pub fn directionality(&self) -> String
[src]
impl Element
[src]
pub fn is_html_element(&self) -> bool
[src]
pub fn html_element_in_html_document(&self) -> bool
[src]
pub fn local_name(&self) -> &LocalName
[src]
pub fn parsed_name(&self, name: DOMString) -> LocalName
[src]
pub fn namespace(&self) -> &Namespace
[src]
pub fn prefix(&self) -> Ref<'_, Option<Prefix>>
[src]
pub fn set_prefix(&self, prefix: Option<Prefix>)
[src]
pub fn attrs(&self) -> Ref<'_, [Dom<Attr>]>
[src]
pub fn locate_namespace(&self, prefix: Option<DOMString>) -> Namespace
[src]
pub fn name_attribute(&self) -> Option<Atom>
[src]
pub fn style_attribute(
&self
) -> &DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>
[src]
&self
) -> &DomRefCell<Option<Arc<Locked<PropertyDeclarationBlock>>>>
pub fn summarize(&self) -> Vec<AttrInfo>ⓘ
[src]
pub fn is_void(&self) -> bool
[src]
pub fn serialize(
&self,
traversal_scope: TraversalScope
) -> Result<DOMString, Error>
[src]
&self,
traversal_scope: TraversalScope
) -> Result<DOMString, Error>
pub fn xmlSerialize(
&self,
traversal_scope: XmlTraversalScope
) -> Result<DOMString, Error>
[src]
&self,
traversal_scope: XmlTraversalScope
) -> Result<DOMString, Error>
pub fn root_element(&self) -> Root<Dom<Element>>
[src]
pub fn lookup_prefix(&self, namespace: Namespace) -> Option<DOMString>
[src]
pub fn input_method_type(&self) -> Option<InputMethodType>
[src]
pub fn is_focusable_area(&self) -> bool
[src]
pub fn is_actually_disabled(&self) -> bool
[src]
pub fn push_new_attribute(
&self,
local_name: LocalName,
value: AttrValue,
name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>
)
[src]
&self,
local_name: LocalName,
value: AttrValue,
name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>
)
pub fn push_attribute(&self, attr: &Attr)
[src]
pub fn get_attribute(
&self,
namespace: &Namespace,
local_name: &LocalName
) -> Option<Root<Dom<Attr>>>
[src]
&self,
namespace: &Namespace,
local_name: &LocalName
) -> Option<Root<Dom<Attr>>>
pub fn get_attribute_by_name(&self, name: DOMString) -> Option<Root<Dom<Attr>>>
[src]
pub fn set_attribute_from_parser(
&self,
qname: QualName,
value: DOMString,
prefix: Option<Prefix>
)
[src]
&self,
qname: QualName,
value: DOMString,
prefix: Option<Prefix>
)
pub fn set_attribute(&self, name: &LocalName, value: AttrValue)
[src]
pub fn set_custom_attribute(
&self,
name: DOMString,
value: DOMString
) -> Result<(), Error>
[src]
&self,
name: DOMString,
value: DOMString
) -> Result<(), Error>
fn set_first_matching_attribute<F>(
&self,
local_name: LocalName,
value: AttrValue,
name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
find: F
) where
F: Fn(&Attr) -> bool,
[src]
&self,
local_name: LocalName,
value: AttrValue,
name: LocalName,
namespace: Namespace,
prefix: Option<Prefix>,
find: F
) where
F: Fn(&Attr) -> bool,
pub fn parse_attribute(
&self,
namespace: &Namespace,
local_name: &LocalName,
value: DOMString
) -> AttrValue
[src]
&self,
namespace: &Namespace,
local_name: &LocalName,
value: DOMString
) -> AttrValue
pub fn remove_attribute(
&self,
namespace: &Namespace,
local_name: &LocalName
) -> Option<Root<Dom<Attr>>>
[src]
&self,
namespace: &Namespace,
local_name: &LocalName
) -> Option<Root<Dom<Attr>>>
pub fn remove_attribute_by_name(
&self,
name: &LocalName
) -> Option<Root<Dom<Attr>>>
[src]
&self,
name: &LocalName
) -> Option<Root<Dom<Attr>>>
fn remove_first_matching_attribute<F>(&self, find: F) -> Option<Root<Dom<Attr>>> where
F: Fn(&Attr) -> bool,
[src]
F: Fn(&Attr) -> bool,
pub fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool
[src]
pub fn set_atomic_attribute(&self, local_name: &LocalName, value: DOMString)
[src]
pub fn has_attribute(&self, local_name: &LocalName) -> bool
[src]
pub fn set_bool_attribute(&self, local_name: &LocalName, value: bool)
[src]
pub fn get_url_attribute(&self, local_name: &LocalName) -> USVString
[src]
pub fn set_url_attribute(&self, local_name: &LocalName, value: USVString)
[src]
pub fn get_string_attribute(&self, local_name: &LocalName) -> DOMString
[src]
pub fn set_string_attribute(&self, local_name: &LocalName, value: DOMString)
[src]
pub fn get_tokenlist_attribute(&self, local_name: &LocalName) -> Vec<Atom>ⓘ
[src]
pub fn set_tokenlist_attribute(&self, local_name: &LocalName, value: DOMString)
[src]
pub fn set_atomic_tokenlist_attribute(
&self,
local_name: &LocalName,
tokens: Vec<Atom>
)
[src]
&self,
local_name: &LocalName,
tokens: Vec<Atom>
)
pub fn get_int_attribute(&self, local_name: &LocalName, default: i32) -> i32
[src]
pub fn set_int_attribute(&self, local_name: &LocalName, value: i32)
[src]
pub fn get_uint_attribute(&self, local_name: &LocalName, default: u32) -> u32
[src]
pub fn set_uint_attribute(&self, local_name: &LocalName, value: u32)
[src]
pub fn will_mutate_attr(&self, attr: &Attr)
[src]
pub fn insert_adjacent(
&self,
where_: AdjacentPosition,
node: &Node
) -> Result<Option<Root<Dom<Node>>>, Error>
[src]
&self,
where_: AdjacentPosition,
node: &Node
) -> Result<Option<Root<Dom<Node>>>, Error>
pub fn scroll(&self, x_: f64, y_: f64, behavior: ScrollBehavior)
[src]
pub fn parse_fragment(
&self,
markup: DOMString
) -> Result<Root<Dom<DocumentFragment>>, Error>
[src]
&self,
markup: DOMString
) -> Result<Root<Dom<DocumentFragment>>, Error>
pub fn fragment_parsing_context(
owner_doc: &Document,
element: Option<&Self>
) -> Root<Dom<Self>>
[src]
owner_doc: &Document,
element: Option<&Self>
) -> Root<Dom<Self>>
pub fn fullscreen_element_ready_check(&self) -> bool
[src]
pub fn is_in_same_home_subtree<T>(&self, other: &T) -> bool where
T: DerivedFrom<Element> + DomObject,
[src]
T: DerivedFrom<Element> + DomObject,
pub fn get_id(&self) -> Option<Atom>
[src]
pub fn get_name(&self) -> Option<Atom>
[src]
fn is_sequentially_focusable(&self) -> bool
[src]
pub(crate) fn update_sequentially_focusable_status(&self)
[src]
impl Element
[src]
fn client_rect(&self) -> Rect<i32>
[src]
pub fn as_maybe_activatable(&self) -> Option<&dyn Activatable>
[src]
pub fn as_stylesheet_owner(&self) -> Option<&dyn StylesheetOwner>
[src]
pub fn as_maybe_validatable(&self) -> Option<&dyn Validatable>
[src]
pub fn click_in_progress(&self) -> bool
[src]
pub fn set_click_in_progress(&self, click: bool)
[src]
pub fn nearest_activable_element(&self) -> Option<Root<Dom<Element>>>
[src]
pub fn get_lang(&self) -> String
[src]
pub fn state(&self) -> ElementState
[src]
pub fn set_state(&self, which: ElementState, value: bool)
[src]
pub fn set_active_state(&self, value: bool)
[src]
pub fn focus_state(&self) -> bool
[src]
pub fn set_focus_state(&self, value: bool)
[src]
pub fn hover_state(&self) -> bool
[src]
pub fn set_hover_state(&self, value: bool)
[src]
pub fn enabled_state(&self) -> bool
[src]
pub fn set_enabled_state(&self, value: bool)
[src]
pub fn disabled_state(&self) -> bool
[src]
pub fn set_disabled_state(&self, value: bool)
[src]
pub fn read_write_state(&self) -> bool
[src]
pub fn set_read_write_state(&self, value: bool)
[src]
pub fn placeholder_shown_state(&self) -> bool
[src]
pub fn set_placeholder_shown_state(&self, value: bool)
[src]
pub fn set_target_state(&self, value: bool)
[src]
pub fn set_fullscreen_state(&self, value: bool)
[src]
pub fn is_connected(&self) -> bool
[src]
pub fn cannot_navigate(&self) -> bool
[src]
impl Element
[src]
pub fn check_ancestors_disabled_state_for_form_control(&self)
[src]
pub fn check_parent_disabled_state_for_option(&self)
[src]
pub fn check_disabled_attribute(&self)
[src]
Trait Implementations
impl Castable for Element
[src]
fn is<T>(&self) -> bool where
T: DerivedFrom<Self>,
[src]
T: DerivedFrom<Self>,
fn upcast<T>(&self) -> &T where
T: Castable,
Self: DerivedFrom<T>,
[src]
T: Castable,
Self: DerivedFrom<T>,
fn downcast<T>(&self) -> Option<&T> where
T: DerivedFrom<Self>,
[src]
T: DerivedFrom<Self>,
impl Debug for Element
[src]
impl DerivedFrom<Element> for Element
[src]
impl DerivedFrom<Element> for HTMLAnchorElement
[src]
impl DerivedFrom<Element> for HTMLDataElement
[src]
impl DerivedFrom<Element> for HTMLDataListElement
[src]
impl DerivedFrom<Element> for HTMLDetailsElement
[src]
impl DerivedFrom<Element> for HTMLDialogElement
[src]
impl DerivedFrom<Element> for HTMLDirectoryElement
[src]
impl DerivedFrom<Element> for HTMLDivElement
[src]
impl DerivedFrom<Element> for HTMLElement
[src]
impl DerivedFrom<Element> for HTMLEmbedElement
[src]
impl DerivedFrom<Element> for HTMLFieldSetElement
[src]
impl DerivedFrom<Element> for HTMLFontElement
[src]
impl DerivedFrom<Element> for HTMLAreaElement
[src]
impl DerivedFrom<Element> for HTMLFormElement
[src]
impl DerivedFrom<Element> for HTMLFrameElement
[src]
impl DerivedFrom<Element> for HTMLFrameSetElement
[src]
impl DerivedFrom<Element> for HTMLHRElement
[src]
impl DerivedFrom<Element> for HTMLHeadElement
[src]
impl DerivedFrom<Element> for HTMLHeadingElement
[src]
impl DerivedFrom<Element> for HTMLHtmlElement
[src]
impl DerivedFrom<Element> for HTMLIFrameElement
[src]
impl DerivedFrom<Element> for HTMLImageElement
[src]
impl DerivedFrom<Element> for HTMLInputElement
[src]
impl DerivedFrom<Element> for HTMLAudioElement
[src]
impl DerivedFrom<Element> for HTMLLIElement
[src]
impl DerivedFrom<Element> for HTMLLabelElement
[src]
impl DerivedFrom<Element> for HTMLLegendElement
[src]
impl DerivedFrom<Element> for HTMLLinkElement
[src]
impl DerivedFrom<Element> for HTMLMapElement
[src]
impl DerivedFrom<Element> for HTMLMediaElement
[src]
impl DerivedFrom<Element> for HTMLMenuElement
[src]
impl DerivedFrom<Element> for HTMLMetaElement
[src]
impl DerivedFrom<Element> for HTMLMeterElement
[src]
impl DerivedFrom<Element> for HTMLModElement
[src]
impl DerivedFrom<Element> for HTMLBRElement
[src]
impl DerivedFrom<Element> for HTMLOListElement
[src]
impl DerivedFrom<Element> for HTMLObjectElement
[src]
impl DerivedFrom<Element> for HTMLOptGroupElement
[src]
impl DerivedFrom<Element> for HTMLOptionElement
[src]
impl DerivedFrom<Element> for HTMLOutputElement
[src]
impl DerivedFrom<Element> for HTMLParagraphElement
[src]
impl DerivedFrom<Element> for HTMLParamElement
[src]
impl DerivedFrom<Element> for HTMLPictureElement
[src]
impl DerivedFrom<Element> for HTMLPreElement
[src]
impl DerivedFrom<Element> for HTMLProgressElement
[src]
impl DerivedFrom<Element> for HTMLBaseElement
[src]
impl DerivedFrom<Element> for HTMLQuoteElement
[src]
impl DerivedFrom<Element> for HTMLScriptElement
[src]
impl DerivedFrom<Element> for HTMLSelectElement
[src]
impl DerivedFrom<Element> for HTMLSourceElement
[src]
impl DerivedFrom<Element> for HTMLSpanElement
[src]
impl DerivedFrom<Element> for HTMLStyleElement
[src]
impl DerivedFrom<Element> for HTMLTableCaptionElement
[src]
impl DerivedFrom<Element> for HTMLTableCellElement
[src]
impl DerivedFrom<Element> for HTMLTableColElement
[src]
impl DerivedFrom<Element> for HTMLTableElement
[src]
impl DerivedFrom<Element> for HTMLBodyElement
[src]
impl DerivedFrom<Element> for HTMLTableRowElement
[src]
impl DerivedFrom<Element> for HTMLTableSectionElement
[src]
impl DerivedFrom<Element> for HTMLTemplateElement
[src]
impl DerivedFrom<Element> for HTMLTextAreaElement
[src]
impl DerivedFrom<Element> for HTMLTimeElement
[src]
impl DerivedFrom<Element> for HTMLTitleElement
[src]
impl DerivedFrom<Element> for HTMLTrackElement
[src]
impl DerivedFrom<Element> for HTMLUListElement
[src]
impl DerivedFrom<Element> for HTMLUnknownElement
[src]
impl DerivedFrom<Element> for HTMLVideoElement
[src]
impl DerivedFrom<Element> for HTMLButtonElement
[src]
impl DerivedFrom<Element> for SVGElement
[src]
impl DerivedFrom<Element> for SVGGraphicsElement
[src]
impl DerivedFrom<Element> for SVGSVGElement
[src]
impl DerivedFrom<Element> for HTMLCanvasElement
[src]
impl DerivedFrom<Element> for HTMLDListElement
[src]
impl DerivedFrom<EventTarget> for Element
[src]
impl DerivedFrom<Node> for Element
[src]
impl DomObject for Element
[src]
fn reflector(&self) -> &Reflector
[src]
fn global(&self) -> Root<Dom<GlobalScope>> where
Self: Sized,
[src]
Self: Sized,
impl DomObjectWrap for Element
[src]
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>>
[src]
impl ElementMethods for Element
[src]
fn GetNamespaceURI(&self) -> Option<DOMString>
[src]
fn LocalName(&self) -> DOMString
[src]
fn GetPrefix(&self) -> Option<DOMString>
[src]
fn TagName(&self) -> DOMString
[src]
fn Id(&self) -> DOMString
[src]
fn SetId(&self, id: DOMString)
[src]
fn ClassName(&self) -> DOMString
[src]
fn SetClassName(&self, class: DOMString)
[src]
fn ClassList(&self) -> Root<Dom<DOMTokenList>>
[src]
fn Attributes(&self) -> Root<Dom<NamedNodeMap>>
[src]
fn HasAttributes(&self) -> bool
[src]
fn GetAttributeNames(&self) -> Vec<DOMString>ⓘ
[src]
fn GetAttribute(&self, name: DOMString) -> Option<DOMString>
[src]
fn GetAttributeNS(
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> Option<DOMString>
[src]
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> Option<DOMString>
fn GetAttributeNode(&self, name: DOMString) -> Option<Root<Dom<Attr>>>
[src]
fn GetAttributeNodeNS(
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> Option<Root<Dom<Attr>>>
[src]
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> Option<Root<Dom<Attr>>>
fn ToggleAttribute(
&self,
name: DOMString,
force: Option<bool>
) -> Result<bool, Error>
[src]
&self,
name: DOMString,
force: Option<bool>
) -> Result<bool, Error>
fn SetAttribute(&self, name: DOMString, value: DOMString) -> Result<(), Error>
[src]
fn SetAttributeNS(
&self,
namespace: Option<DOMString>,
qualified_name: DOMString,
value: DOMString
) -> Result<(), Error>
[src]
&self,
namespace: Option<DOMString>,
qualified_name: DOMString,
value: DOMString
) -> Result<(), Error>
fn SetAttributeNode(
&self,
attr: &Attr
) -> Result<Option<Root<Dom<Attr>>>, Error>
[src]
&self,
attr: &Attr
) -> Result<Option<Root<Dom<Attr>>>, Error>
fn SetAttributeNodeNS(
&self,
attr: &Attr
) -> Result<Option<Root<Dom<Attr>>>, Error>
[src]
&self,
attr: &Attr
) -> Result<Option<Root<Dom<Attr>>>, Error>
fn RemoveAttribute(&self, name: DOMString)
[src]
fn RemoveAttributeNS(&self, namespace: Option<DOMString>, local_name: DOMString)
[src]
fn RemoveAttributeNode(&self, attr: &Attr) -> Result<Root<Dom<Attr>>, Error>
[src]
fn HasAttribute(&self, name: DOMString) -> bool
[src]
fn HasAttributeNS(
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> bool
[src]
&self,
namespace: Option<DOMString>,
local_name: DOMString
) -> bool
fn GetElementsByTagName(
&self,
localname: DOMString
) -> Root<Dom<HTMLCollection>>
[src]
&self,
localname: DOMString
) -> Root<Dom<HTMLCollection>>
fn GetElementsByTagNameNS(
&self,
maybe_ns: Option<DOMString>,
localname: DOMString
) -> Root<Dom<HTMLCollection>>
[src]
&self,
maybe_ns: Option<DOMString>,
localname: DOMString
) -> Root<Dom<HTMLCollection>>
fn GetElementsByClassName(
&self,
classes: DOMString
) -> Root<Dom<HTMLCollection>>
[src]
&self,
classes: DOMString
) -> Root<Dom<HTMLCollection>>
fn GetClientRects(&self) -> Vec<Root<Dom<DOMRect>>>ⓘ
[src]
fn GetBoundingClientRect(&self) -> Root<Dom<DOMRect>>
[src]
fn Scroll(&self, options: &ScrollToOptions)
[src]
fn Scroll_(&self, x: f64, y: f64)
[src]
fn ScrollTo(&self, options: &ScrollToOptions)
[src]
fn ScrollTo_(&self, x: f64, y: f64)
[src]
fn ScrollBy(&self, options: &ScrollToOptions)
[src]
fn ScrollBy_(&self, x: f64, y: f64)
[src]
fn ScrollTop(&self) -> f64
[src]
fn SetScrollTop(&self, y_: f64)
[src]
fn ScrollLeft(&self) -> f64
[src]
fn SetScrollLeft(&self, x_: f64)
[src]
fn ScrollWidth(&self) -> i32
[src]
fn ScrollHeight(&self) -> i32
[src]
fn ClientTop(&self) -> i32
[src]
fn ClientLeft(&self) -> i32
[src]
fn ClientWidth(&self) -> i32
[src]
fn ClientHeight(&self) -> i32
[src]
fn GetInnerHTML(&self) -> Result<DOMString, Error>
[src]
fn SetInnerHTML(&self, value: DOMString) -> Result<(), Error>
[src]
fn GetOuterHTML(&self) -> Result<DOMString, Error>
[src]
fn SetOuterHTML(&self, value: DOMString) -> Result<(), Error>
[src]
fn GetPreviousElementSibling(&self) -> Option<Root<Dom<Element>>>
[src]
fn GetNextElementSibling(&self) -> Option<Root<Dom<Element>>>
[src]
fn Children(&self) -> Root<Dom<HTMLCollection>>
[src]
fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>
[src]
fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>
[src]
fn ChildElementCount(&self) -> u32
[src]
fn Prepend(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
[src]
fn Append(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
[src]
fn ReplaceChildren(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
[src]
fn QuerySelector(
&self,
selectors: DOMString
) -> Result<Option<Root<Dom<Element>>>, Error>
[src]
&self,
selectors: DOMString
) -> Result<Option<Root<Dom<Element>>>, Error>
fn QuerySelectorAll(
&self,
selectors: DOMString
) -> Result<Root<Dom<NodeList>>, Error>
[src]
&self,
selectors: DOMString
) -> Result<Root<Dom<NodeList>>, Error>
fn Before(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
[src]
fn After(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
[src]
fn ReplaceWith(&self, nodes: Vec<NodeOrString>) -> Result<(), Error>
[src]
fn Remove(&self)
[src]
fn Matches(&self, selectors: DOMString) -> Result<bool, Error>
[src]
fn WebkitMatchesSelector(&self, selectors: DOMString) -> Result<bool, Error>
[src]
fn Closest(
&self,
selectors: DOMString
) -> Result<Option<Root<Dom<Element>>>, Error>
[src]
&self,
selectors: DOMString
) -> Result<Option<Root<Dom<Element>>>, Error>
fn InsertAdjacentElement(
&self,
where_: DOMString,
element: &Element
) -> Result<Option<Root<Dom<Element>>>, Error>
[src]
&self,
where_: DOMString,
element: &Element
) -> Result<Option<Root<Dom<Element>>>, Error>
fn InsertAdjacentText(
&self,
where_: DOMString,
data: DOMString
) -> Result<(), Error>
[src]
&self,
where_: DOMString,
data: DOMString
) -> Result<(), Error>
fn InsertAdjacentHTML(
&self,
position: DOMString,
text: DOMString
) -> Result<(), Error>
[src]
&self,
position: DOMString,
text: DOMString
) -> Result<(), Error>
fn EnterFormalActivationState(&self) -> Result<(), Error>
[src]
fn ExitFormalActivationState(&self) -> Result<(), Error>
[src]
fn RequestFullscreen(&self) -> Rc<Promise>
[src]
fn AttachShadow(&self) -> Result<Root<Dom<ShadowRoot>>, Error>
[src]
impl FormControlElementHelpers for Element
[src]
fn as_maybe_form_control<'a>(&'a self) -> Option<&'a dyn FormControl>
[src]
impl HasParent for Element
[src]
type Parent = Node
fn as_parent(&self) -> &Node
[src]
This is used in a type assertion to ensure that the source and webidls agree as to what the parent type is
impl IDLInterface for Element
[src]
impl JSTraceable for Element
[src]
impl MallocSizeOf for Element
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
impl MutDomObject for Element
[src]
unsafe fn init_reflector(&self, obj: *mut JSObject)
[src]
impl PartialEq<Element> for Element
[src]
fn eq(&self, other: &Element) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl ToJSValConvertible for Element
[src]
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
[src]
impl VirtualMethods for Element
[src]
fn super_type(&self) -> Option<&dyn VirtualMethods>
[src]
fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool
[src]
fn attribute_mutated(&self, attr: &Attr, mutation: AttributeMutation<'_>)
[src]
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue
[src]
fn bind_to_tree(&self, context: &BindContext)
[src]
fn unbind_from_tree(&self, context: &UnbindContext<'_>)
[src]
fn children_changed(&self, mutation: &ChildrenMutation<'_>)
[src]
fn adopting_steps(&self, old_doc: &Document)
[src]
fn handle_event(&self, event: &Event)
[src]
fn cloning_steps(
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag
)
[src]
&self,
copy: &Node,
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag
)
fn pop(&self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeBoxed<Box<T, Global>> for T
[src]
pub fn maybe_boxed(self) -> Box<T, Global>
[src]
impl<T> MaybeBoxed<T> for T
[src]
pub fn maybe_boxed(self) -> T
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,