Trait script::dom::bindings::codegen::Bindings::DocumentBinding::Document_Binding::DocumentMethods
source · pub trait DocumentMethods<D: DomTypes> {
Show 242 methods
// Required methods
fn Implementation(&self) -> Root<Dom<DOMImplementation>>;
fn URL(&self) -> USVString;
fn DocumentURI(&self) -> USVString;
fn CompatMode(&self) -> DOMString;
fn CharacterSet(&self) -> DOMString;
fn Charset(&self) -> DOMString;
fn InputEncoding(&self) -> DOMString;
fn ContentType(&self) -> DOMString;
fn GetDoctype(&self) -> Option<Root<Dom<DocumentType>>>;
fn GetDocumentElement(&self) -> Option<Root<Dom<Element>>>;
fn GetElementsByTagName(
&self,
qualifiedName: DOMString,
) -> Root<Dom<HTMLCollection>>;
fn GetElementsByTagNameNS(
&self,
namespace: Option<DOMString>,
qualifiedName: DOMString,
) -> Root<Dom<HTMLCollection>>;
fn GetElementsByClassName(
&self,
classNames: DOMString,
) -> Root<Dom<HTMLCollection>>;
fn CreateElement(
&self,
localName: DOMString,
options: StringOrElementCreationOptions,
_can_gc: CanGc,
) -> Result<Root<Dom<Element>>, Error>;
fn CreateElementNS(
&self,
namespace: Option<DOMString>,
qualifiedName: DOMString,
options: StringOrElementCreationOptions,
_can_gc: CanGc,
) -> Result<Root<Dom<Element>>, Error>;
fn CreateDocumentFragment(
&self,
_can_gc: CanGc,
) -> Root<Dom<DocumentFragment>>;
fn CreateTextNode(&self, data: DOMString, _can_gc: CanGc) -> Root<Dom<Text>>;
fn CreateCDATASection(
&self,
data: DOMString,
_can_gc: CanGc,
) -> Result<Root<Dom<CDATASection>>, Error>;
fn CreateComment(
&self,
data: DOMString,
_can_gc: CanGc,
) -> Root<Dom<Comment>>;
fn CreateProcessingInstruction(
&self,
target: DOMString,
data: DOMString,
_can_gc: CanGc,
) -> Result<Root<Dom<ProcessingInstruction>>, Error>;
fn ImportNode(
&self,
node: &Node,
deep: bool,
_can_gc: CanGc,
) -> Result<Root<Dom<Node>>, Error>;
fn AdoptNode(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>;
fn CreateAttribute(
&self,
localName: DOMString,
_can_gc: CanGc,
) -> Result<Root<Dom<Attr>>, Error>;
fn CreateAttributeNS(
&self,
namespace: Option<DOMString>,
qualifiedName: DOMString,
_can_gc: CanGc,
) -> Result<Root<Dom<Attr>>, Error>;
fn CreateEvent(
&self,
interface_: DOMString,
_can_gc: CanGc,
) -> Result<Root<Dom<Event>>, Error>;
fn CreateRange(&self, _can_gc: CanGc) -> Root<Dom<Range>>;
fn CreateNodeIterator(
&self,
root: &Node,
whatToShow: u32,
filter: Option<Rc<NodeFilter>>,
) -> Root<Dom<NodeIterator>>;
fn CreateTreeWalker(
&self,
root: &Node,
whatToShow: u32,
filter: Option<Rc<NodeFilter>>,
) -> Root<Dom<TreeWalker>>;
fn GetLocation(&self) -> Option<Root<Dom<Location>>>;
fn Domain(&self) -> DOMString;
fn SetDomain(&self, value: DOMString) -> Result<(), Error>;
fn Referrer(&self) -> DOMString;
fn GetCookie(&self) -> Result<DOMString, Error>;
fn SetCookie(&self, value: DOMString) -> Result<(), Error>;
fn LastModified(&self) -> DOMString;
fn ReadyState(&self) -> DocumentReadyState;
fn Title(&self) -> DOMString;
fn SetTitle(&self, value: DOMString, _can_gc: CanGc);
fn GetBody(&self) -> Option<Root<Dom<HTMLElement>>>;
fn SetBody(&self, value: Option<&HTMLElement>) -> Result<(), Error>;
fn GetHead(&self) -> Option<Root<Dom<HTMLHeadElement>>>;
fn Images(&self) -> Root<Dom<HTMLCollection>>;
fn Embeds(&self) -> Root<Dom<HTMLCollection>>;
fn Plugins(&self) -> Root<Dom<HTMLCollection>>;
fn Links(&self) -> Root<Dom<HTMLCollection>>;
fn Forms(&self) -> Root<Dom<HTMLCollection>>;
fn Scripts(&self) -> Root<Dom<HTMLCollection>>;
fn GetElementsByName(&self, elementName: DOMString) -> Root<Dom<NodeList>>;
fn GetCurrentScript(&self) -> Option<Root<Dom<HTMLScriptElement>>>;
fn Open(
&self,
unused1: Option<DOMString>,
unused2: Option<DOMString>,
_can_gc: CanGc,
) -> Result<Root<Dom<Document>>, Error>;
fn Open_(
&self,
url: USVString,
name: DOMString,
features: DOMString,
_can_gc: CanGc,
) -> Result<Option<Root<Dom<WindowProxy>>>, Error>;
fn Close(&self, _can_gc: CanGc) -> Result<(), Error>;
fn Write(&self, text: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>;
fn Writeln(&self, text: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>;
fn GetDefaultView(&self) -> Option<Root<Dom<Window>>>;
fn HasFocus(&self) -> bool;
fn QueryCommandSupported(&self, commandId: DOMString) -> bool;
fn Hidden(&self) -> bool;
fn VisibilityState(&self) -> DocumentVisibilityState;
fn GetOnreadystatechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnreadystatechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn FgColor(&self) -> DOMString;
fn SetFgColor(&self, value: DOMString, _can_gc: CanGc);
fn BgColor(&self) -> DOMString;
fn SetBgColor(&self, value: DOMString, _can_gc: CanGc);
fn Anchors(&self) -> Root<Dom<HTMLCollection>>;
fn Applets(&self) -> Root<Dom<HTMLCollection>>;
fn Clear(&self);
fn CaptureEvents(&self);
fn ReleaseEvents(&self);
fn FullscreenEnabled(&self) -> bool;
fn GetFullscreenElement(&self) -> Option<Root<Dom<Element>>>;
fn Fullscreen(&self) -> bool;
fn ExitFullscreen(&self, _can_gc: CanGc) -> Rc<Promise>;
fn GetOnfullscreenchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnfullscreenchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnfullscreenerror(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnfullscreenerror(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetSelection(&self) -> Option<Root<Dom<Selection>>>;
fn ServoGetMediaControls(
&self,
id: DOMString,
) -> Result<Root<Dom<ShadowRoot>>, Error>;
fn GetOncopy(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncopy(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncut(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncut(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnpaste(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnpaste(&self, value: Option<Rc<EventHandlerNonNull>>);
fn ElementFromPoint(
&self,
x: Finite<f64>,
y: Finite<f64>,
_can_gc: CanGc,
) -> Option<Root<Dom<Element>>>;
fn ElementsFromPoint(
&self,
x: Finite<f64>,
y: Finite<f64>,
_can_gc: CanGc,
) -> Vec<Root<Dom<Element>>>;
fn GetActiveElement(&self) -> Option<Root<Dom<Element>>>;
fn StyleSheets(&self) -> Root<Dom<StyleSheetList>>;
fn Fonts(&self, _can_gc: CanGc) -> Root<Dom<FontFaceSet>>;
fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnblur(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnblur(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncancel(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncancel(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncanplay(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncanplay(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncanplaythrough(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncanplaythrough(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnclick(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnclick(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnclose(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnclose(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncontextmenu(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncontextmenu(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOncuechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncuechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndblclick(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndblclick(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndrag(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndrag(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragenter(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragenter(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragexit(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragexit(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragleave(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragleave(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragover(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragover(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndragstart(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndragstart(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndrop(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndrop(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOndurationchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOndurationchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnemptied(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnemptied(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnended(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnended(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnerror(&self) -> Option<Rc<OnErrorEventHandlerNonNull>>;
fn SetOnerror(&self, value: Option<Rc<OnErrorEventHandlerNonNull>>);
fn GetOnfocus(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnfocus(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnformdata(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnformdata(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOninput(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOninput(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOninvalid(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOninvalid(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnkeydown(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnkeydown(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnkeypress(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnkeypress(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnkeyup(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnkeyup(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnload(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnload(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnloadeddata(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnloadeddata(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnloadedmetadata(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnloadedmetadata(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnloadstart(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnloadstart(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmousedown(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmousedown(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseenter(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseenter(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseleave(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseleave(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmousemove(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmousemove(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseout(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseout(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseover(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseover(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmouseup(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmouseup(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnwheel(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnwheel(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnpause(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnpause(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnplay(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnplay(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnplaying(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnplaying(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnprogress(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnprogress(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnratechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnratechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnreset(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnreset(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnresize(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnresize(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnscroll(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnscroll(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnsecuritypolicyviolation(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnsecuritypolicyviolation(
&self,
value: Option<Rc<EventHandlerNonNull>>,
);
fn GetOnseeked(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnseeked(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnseeking(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnseeking(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnselect(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnselect(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnshow(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnshow(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnstalled(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnstalled(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnsubmit(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnsubmit(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnsuspend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnsuspend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntimeupdate(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntimeupdate(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntoggle(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntoggle(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnvolumechange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnvolumechange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnwaiting(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnwaiting(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnanimationend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnanimationend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnanimationiteration(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnanimationiteration(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntransitionrun(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntransitionrun(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntransitionend(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntransitionend(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOntransitioncancel(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOntransitioncancel(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnselectstart(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnselectstart(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnselectionchange(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnselectionchange(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetElementById(&self, elementId: DOMString) -> Option<Root<Dom<Element>>>;
fn Children(&self) -> Root<Dom<HTMLCollection>>;
fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>;
fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>;
fn ChildElementCount(&self) -> u32;
fn Prepend(
&self,
nodes: Vec<NodeOrString>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn Append(
&self,
nodes: Vec<NodeOrString>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn ReplaceChildren(
&self,
nodes: Vec<NodeOrString>,
_can_gc: CanGc,
) -> Result<(), Error>;
fn QuerySelector(
&self,
selectors: DOMString,
) -> Result<Option<Root<Dom<Element>>>, Error>;
fn QuerySelectorAll(
&self,
selectors: DOMString,
) -> Result<Root<Dom<NodeList>>, Error>;
fn SupportedPropertyNames(&self) -> Vec<DOMString>;
fn NamedGetter(
&self,
name: DOMString,
) -> Option<WindowProxyOrElementOrHTMLCollection>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
) -> Result<Root<Dom<Document>>, Error>;
}
Required Methods§
fn Implementation(&self) -> Root<Dom<DOMImplementation>>
fn URL(&self) -> USVString
fn DocumentURI(&self) -> USVString
fn CompatMode(&self) -> DOMString
fn CharacterSet(&self) -> DOMString
fn Charset(&self) -> DOMString
fn InputEncoding(&self) -> DOMString
fn ContentType(&self) -> DOMString
fn GetDoctype(&self) -> Option<Root<Dom<DocumentType>>>
fn GetDocumentElement(&self) -> Option<Root<Dom<Element>>>
fn GetElementsByTagName( &self, qualifiedName: DOMString, ) -> Root<Dom<HTMLCollection>>
fn GetElementsByTagNameNS( &self, namespace: Option<DOMString>, qualifiedName: DOMString, ) -> Root<Dom<HTMLCollection>>
fn GetElementsByClassName( &self, classNames: DOMString, ) -> Root<Dom<HTMLCollection>>
fn CreateElement( &self, localName: DOMString, options: StringOrElementCreationOptions, _can_gc: CanGc, ) -> Result<Root<Dom<Element>>, Error>
fn CreateElementNS( &self, namespace: Option<DOMString>, qualifiedName: DOMString, options: StringOrElementCreationOptions, _can_gc: CanGc, ) -> Result<Root<Dom<Element>>, Error>
fn CreateDocumentFragment(&self, _can_gc: CanGc) -> Root<Dom<DocumentFragment>>
fn CreateTextNode(&self, data: DOMString, _can_gc: CanGc) -> Root<Dom<Text>>
fn CreateCDATASection( &self, data: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<CDATASection>>, Error>
fn CreateComment(&self, data: DOMString, _can_gc: CanGc) -> Root<Dom<Comment>>
fn CreateProcessingInstruction( &self, target: DOMString, data: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<ProcessingInstruction>>, Error>
fn ImportNode( &self, node: &Node, deep: bool, _can_gc: CanGc, ) -> Result<Root<Dom<Node>>, Error>
fn AdoptNode(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>
fn CreateAttribute( &self, localName: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<Attr>>, Error>
fn CreateAttributeNS( &self, namespace: Option<DOMString>, qualifiedName: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<Attr>>, Error>
fn CreateEvent( &self, interface_: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<Event>>, Error>
fn CreateRange(&self, _can_gc: CanGc) -> Root<Dom<Range>>
fn CreateNodeIterator( &self, root: &Node, whatToShow: u32, filter: Option<Rc<NodeFilter>>, ) -> Root<Dom<NodeIterator>>
fn CreateTreeWalker( &self, root: &Node, whatToShow: u32, filter: Option<Rc<NodeFilter>>, ) -> Root<Dom<TreeWalker>>
fn GetLocation(&self) -> Option<Root<Dom<Location>>>
fn Domain(&self) -> DOMString
fn SetDomain(&self, value: DOMString) -> Result<(), Error>
fn Referrer(&self) -> DOMString
fn GetCookie(&self) -> Result<DOMString, Error>
fn SetCookie(&self, value: DOMString) -> Result<(), Error>
fn LastModified(&self) -> DOMString
fn ReadyState(&self) -> DocumentReadyState
fn Title(&self) -> DOMString
fn SetTitle(&self, value: DOMString, _can_gc: CanGc)
fn GetBody(&self) -> Option<Root<Dom<HTMLElement>>>
fn SetBody(&self, value: Option<&HTMLElement>) -> Result<(), Error>
fn GetHead(&self) -> Option<Root<Dom<HTMLHeadElement>>>
fn Images(&self) -> Root<Dom<HTMLCollection>>
fn Embeds(&self) -> Root<Dom<HTMLCollection>>
fn Plugins(&self) -> Root<Dom<HTMLCollection>>
fn Links(&self) -> Root<Dom<HTMLCollection>>
fn Forms(&self) -> Root<Dom<HTMLCollection>>
fn Scripts(&self) -> Root<Dom<HTMLCollection>>
fn GetElementsByName(&self, elementName: DOMString) -> Root<Dom<NodeList>>
fn GetCurrentScript(&self) -> Option<Root<Dom<HTMLScriptElement>>>
fn Open( &self, unused1: Option<DOMString>, unused2: Option<DOMString>, _can_gc: CanGc, ) -> Result<Root<Dom<Document>>, Error>
fn Open_( &self, url: USVString, name: DOMString, features: DOMString, _can_gc: CanGc, ) -> Result<Option<Root<Dom<WindowProxy>>>, Error>
fn Close(&self, _can_gc: CanGc) -> Result<(), Error>
fn Write(&self, text: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>
fn Writeln(&self, text: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>
fn GetDefaultView(&self) -> Option<Root<Dom<Window>>>
fn HasFocus(&self) -> bool
fn QueryCommandSupported(&self, commandId: DOMString) -> bool
fn Hidden(&self) -> bool
fn VisibilityState(&self) -> DocumentVisibilityState
fn GetOnreadystatechange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnreadystatechange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn FgColor(&self) -> DOMString
fn SetFgColor(&self, value: DOMString, _can_gc: CanGc)
fn BgColor(&self) -> DOMString
fn SetBgColor(&self, value: DOMString, _can_gc: CanGc)
fn Anchors(&self) -> Root<Dom<HTMLCollection>>
fn Applets(&self) -> Root<Dom<HTMLCollection>>
fn Clear(&self)
fn CaptureEvents(&self)
fn ReleaseEvents(&self)
fn FullscreenEnabled(&self) -> bool
fn GetFullscreenElement(&self) -> Option<Root<Dom<Element>>>
fn Fullscreen(&self) -> bool
fn ExitFullscreen(&self, _can_gc: CanGc) -> Rc<Promise>
fn GetOnfullscreenchange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnfullscreenchange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnfullscreenerror(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnfullscreenerror(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetSelection(&self) -> Option<Root<Dom<Selection>>>
fn ServoGetMediaControls( &self, id: DOMString, ) -> Result<Root<Dom<ShadowRoot>>, Error>
fn GetOncopy(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncopy(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOncut(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncut(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnpaste(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnpaste(&self, value: Option<Rc<EventHandlerNonNull>>)
fn ElementFromPoint( &self, x: Finite<f64>, y: Finite<f64>, _can_gc: CanGc, ) -> Option<Root<Dom<Element>>>
fn ElementsFromPoint( &self, x: Finite<f64>, y: Finite<f64>, _can_gc: CanGc, ) -> Vec<Root<Dom<Element>>>
fn GetActiveElement(&self) -> Option<Root<Dom<Element>>>
fn StyleSheets(&self) -> Root<Dom<StyleSheetList>>
fn Fonts(&self, _can_gc: CanGc) -> Root<Dom<FontFaceSet>>
fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnblur(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnblur(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOncancel(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncancel(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOncanplay(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncanplay(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOncanplaythrough(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncanplaythrough(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnchange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnchange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnclick(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnclick(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnclose(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnclose(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOncuechange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncuechange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndblclick(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndblclick(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndrag(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndrag(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndragend(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndragend(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndragenter(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndragenter(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndragexit(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndragexit(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndragleave(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndragleave(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndragover(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndragover(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndragstart(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndragstart(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndrop(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndrop(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOndurationchange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOndurationchange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnemptied(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnemptied(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnended(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnended(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnerror(&self) -> Option<Rc<OnErrorEventHandlerNonNull>>
fn SetOnerror(&self, value: Option<Rc<OnErrorEventHandlerNonNull>>)
fn GetOnfocus(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnfocus(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnformdata(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnformdata(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOninput(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOninput(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOninvalid(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOninvalid(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnkeydown(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnkeydown(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnkeypress(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnkeypress(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnkeyup(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnkeyup(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnload(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnload(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnloadeddata(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnloadeddata(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnloadedmetadata(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnloadedmetadata(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnloadstart(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnloadstart(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmousedown(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmousedown(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmouseenter(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmouseenter(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmouseleave(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmouseleave(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmousemove(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmousemove(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmouseout(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmouseout(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmouseover(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmouseover(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmouseup(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmouseup(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnwheel(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnwheel(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnpause(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnpause(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnplay(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnplay(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnplaying(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnplaying(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnprogress(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnprogress(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnratechange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnratechange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnreset(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnreset(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnresize(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnresize(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnscroll(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnscroll(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnsecuritypolicyviolation(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnsecuritypolicyviolation(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnseeked(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnseeked(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnseeking(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnseeking(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnselect(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnselect(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnshow(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnshow(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnstalled(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnstalled(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnsubmit(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnsubmit(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnsuspend(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnsuspend(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOntimeupdate(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOntimeupdate(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOntoggle(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOntoggle(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnvolumechange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnvolumechange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnwaiting(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnwaiting(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnanimationend(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnanimationend(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnanimationiteration(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnanimationiteration(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOntransitionrun(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOntransitionrun(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOntransitionend(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOntransitionend(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOntransitioncancel(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOntransitioncancel(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnselectstart(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnselectstart(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnselectionchange(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnselectionchange(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetElementById(&self, elementId: DOMString) -> Option<Root<Dom<Element>>>
fn Children(&self) -> Root<Dom<HTMLCollection>>
fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>
fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>
fn ChildElementCount(&self) -> u32
fn Prepend(&self, nodes: Vec<NodeOrString>, _can_gc: CanGc) -> Result<(), Error>
fn Append(&self, nodes: Vec<NodeOrString>, _can_gc: CanGc) -> Result<(), Error>
fn ReplaceChildren( &self, nodes: Vec<NodeOrString>, _can_gc: CanGc, ) -> Result<(), Error>
fn QuerySelector( &self, selectors: DOMString, ) -> Result<Option<Root<Dom<Element>>>, Error>
fn QuerySelectorAll( &self, selectors: DOMString, ) -> Result<Root<Dom<NodeList>>, Error>
fn SupportedPropertyNames(&self) -> Vec<DOMString>
fn NamedGetter( &self, name: DOMString, ) -> Option<WindowProxyOrElementOrHTMLCollection>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<Document>>, Error>
Object Safety§
This trait is not object safe.