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§

source

fn Implementation(&self) -> Root<Dom<DOMImplementation>>

source

fn URL(&self) -> USVString

source

fn DocumentURI(&self) -> USVString

source

fn CompatMode(&self) -> DOMString

source

fn CharacterSet(&self) -> DOMString

source

fn Charset(&self) -> DOMString

source

fn InputEncoding(&self) -> DOMString

source

fn ContentType(&self) -> DOMString

source

fn GetDoctype(&self) -> Option<Root<Dom<DocumentType>>>

source

fn GetDocumentElement(&self) -> Option<Root<Dom<Element>>>

source

fn GetElementsByTagName( &self, qualifiedName: DOMString, ) -> Root<Dom<HTMLCollection>>

source

fn GetElementsByTagNameNS( &self, namespace: Option<DOMString>, qualifiedName: DOMString, ) -> Root<Dom<HTMLCollection>>

source

fn GetElementsByClassName( &self, classNames: DOMString, ) -> Root<Dom<HTMLCollection>>

source

fn CreateElement( &self, localName: DOMString, options: StringOrElementCreationOptions, _can_gc: CanGc, ) -> Result<Root<Dom<Element>>, Error>

source

fn CreateElementNS( &self, namespace: Option<DOMString>, qualifiedName: DOMString, options: StringOrElementCreationOptions, _can_gc: CanGc, ) -> Result<Root<Dom<Element>>, Error>

source

fn CreateDocumentFragment(&self, _can_gc: CanGc) -> Root<Dom<DocumentFragment>>

source

fn CreateTextNode(&self, data: DOMString, _can_gc: CanGc) -> Root<Dom<Text>>

source

fn CreateCDATASection( &self, data: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<CDATASection>>, Error>

source

fn CreateComment(&self, data: DOMString, _can_gc: CanGc) -> Root<Dom<Comment>>

source

fn CreateProcessingInstruction( &self, target: DOMString, data: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<ProcessingInstruction>>, Error>

source

fn ImportNode( &self, node: &Node, deep: bool, _can_gc: CanGc, ) -> Result<Root<Dom<Node>>, Error>

source

fn AdoptNode(&self, node: &Node) -> Result<Root<Dom<Node>>, Error>

source

fn CreateAttribute( &self, localName: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<Attr>>, Error>

source

fn CreateAttributeNS( &self, namespace: Option<DOMString>, qualifiedName: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<Attr>>, Error>

source

fn CreateEvent( &self, interface_: DOMString, _can_gc: CanGc, ) -> Result<Root<Dom<Event>>, Error>

source

fn CreateRange(&self, _can_gc: CanGc) -> Root<Dom<Range>>

source

fn CreateNodeIterator( &self, root: &Node, whatToShow: u32, filter: Option<Rc<NodeFilter>>, ) -> Root<Dom<NodeIterator>>

source

fn CreateTreeWalker( &self, root: &Node, whatToShow: u32, filter: Option<Rc<NodeFilter>>, ) -> Root<Dom<TreeWalker>>

source

fn GetLocation(&self) -> Option<Root<Dom<Location>>>

source

fn Domain(&self) -> DOMString

source

fn SetDomain(&self, value: DOMString) -> Result<(), Error>

source

fn Referrer(&self) -> DOMString

source

fn GetCookie(&self) -> Result<DOMString, Error>

source

fn SetCookie(&self, value: DOMString) -> Result<(), Error>

source

fn LastModified(&self) -> DOMString

source

fn ReadyState(&self) -> DocumentReadyState

source

fn Title(&self) -> DOMString

source

fn SetTitle(&self, value: DOMString, _can_gc: CanGc)

source

fn GetBody(&self) -> Option<Root<Dom<HTMLElement>>>

source

fn SetBody(&self, value: Option<&HTMLElement>) -> Result<(), Error>

source

fn GetHead(&self) -> Option<Root<Dom<HTMLHeadElement>>>

source

fn Images(&self) -> Root<Dom<HTMLCollection>>

source

fn Embeds(&self) -> Root<Dom<HTMLCollection>>

source

fn Plugins(&self) -> Root<Dom<HTMLCollection>>

source

fn Forms(&self) -> Root<Dom<HTMLCollection>>

source

fn Scripts(&self) -> Root<Dom<HTMLCollection>>

source

fn GetElementsByName(&self, elementName: DOMString) -> Root<Dom<NodeList>>

source

fn GetCurrentScript(&self) -> Option<Root<Dom<HTMLScriptElement>>>

source

fn Open( &self, unused1: Option<DOMString>, unused2: Option<DOMString>, _can_gc: CanGc, ) -> Result<Root<Dom<Document>>, Error>

source

fn Open_( &self, url: USVString, name: DOMString, features: DOMString, _can_gc: CanGc, ) -> Result<Option<Root<Dom<WindowProxy>>>, Error>

source

fn Close(&self, _can_gc: CanGc) -> Result<(), Error>

source

fn Write(&self, text: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>

source

fn Writeln(&self, text: Vec<DOMString>, _can_gc: CanGc) -> Result<(), Error>

source

fn GetDefaultView(&self) -> Option<Root<Dom<Window>>>

source

fn HasFocus(&self) -> bool

source

fn QueryCommandSupported(&self, commandId: DOMString) -> bool

source

fn Hidden(&self) -> bool

source

fn VisibilityState(&self) -> DocumentVisibilityState

source

fn GetOnreadystatechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnreadystatechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn FgColor(&self) -> DOMString

source

fn SetFgColor(&self, value: DOMString, _can_gc: CanGc)

source

fn BgColor(&self) -> DOMString

source

fn SetBgColor(&self, value: DOMString, _can_gc: CanGc)

source

fn Anchors(&self) -> Root<Dom<HTMLCollection>>

source

fn Applets(&self) -> Root<Dom<HTMLCollection>>

source

fn Clear(&self)

source

fn CaptureEvents(&self)

source

fn ReleaseEvents(&self)

source

fn FullscreenEnabled(&self) -> bool

source

fn GetFullscreenElement(&self) -> Option<Root<Dom<Element>>>

source

fn Fullscreen(&self) -> bool

source

fn ExitFullscreen(&self, _can_gc: CanGc) -> Rc<Promise>

source

fn GetOnfullscreenchange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnfullscreenchange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnfullscreenerror(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnfullscreenerror(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetSelection(&self) -> Option<Root<Dom<Selection>>>

source

fn ServoGetMediaControls( &self, id: DOMString, ) -> Result<Root<Dom<ShadowRoot>>, Error>

source

fn GetOncopy(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncopy(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOncut(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncut(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnpaste(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnpaste(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn ElementFromPoint( &self, x: Finite<f64>, y: Finite<f64>, _can_gc: CanGc, ) -> Option<Root<Dom<Element>>>

source

fn ElementsFromPoint( &self, x: Finite<f64>, y: Finite<f64>, _can_gc: CanGc, ) -> Vec<Root<Dom<Element>>>

source

fn GetActiveElement(&self) -> Option<Root<Dom<Element>>>

source

fn StyleSheets(&self) -> Root<Dom<StyleSheetList>>

source

fn Fonts(&self, _can_gc: CanGc) -> Root<Dom<FontFaceSet>>

source

fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnblur(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnblur(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOncancel(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncancel(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOncanplay(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncanplay(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOncanplaythrough(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncanplaythrough(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnchange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnchange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnclick(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnclick(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnclose(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnclose(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOncontextmenu(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncontextmenu(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOncuechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOncuechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndblclick(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndblclick(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndrag(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndrag(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndragend(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndragend(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndragenter(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndragenter(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndragexit(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndragexit(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndragleave(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndragleave(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndragover(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndragover(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndragstart(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndragstart(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndrop(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndrop(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOndurationchange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndurationchange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnemptied(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnemptied(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnended(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnended(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnerror(&self) -> Option<Rc<OnErrorEventHandlerNonNull>>

source

fn SetOnerror(&self, value: Option<Rc<OnErrorEventHandlerNonNull>>)

source

fn GetOnfocus(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnfocus(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnformdata(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnformdata(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOninput(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOninput(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOninvalid(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOninvalid(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnkeydown(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnkeydown(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnkeypress(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnkeypress(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnkeyup(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnkeyup(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnload(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnload(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnloadeddata(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnloadeddata(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnloadedmetadata(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnloadedmetadata(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnloadstart(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnloadstart(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmousedown(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmousedown(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmouseenter(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmouseenter(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmouseleave(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmouseleave(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmousemove(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmousemove(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmouseout(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmouseout(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmouseover(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmouseover(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnmouseup(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnmouseup(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnwheel(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnwheel(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnpause(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnpause(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnplay(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnplay(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnplaying(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnplaying(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnprogress(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnprogress(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnratechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnratechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnreset(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnreset(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnresize(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnresize(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnscroll(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnscroll(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnsecuritypolicyviolation(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnsecuritypolicyviolation(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnseeked(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnseeked(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnseeking(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnseeking(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnselect(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnselect(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnshow(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnshow(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnstalled(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnstalled(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnsubmit(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnsubmit(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnsuspend(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnsuspend(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOntimeupdate(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOntimeupdate(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOntoggle(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOntoggle(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnvolumechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnvolumechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnwaiting(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnwaiting(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnanimationend(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnanimationend(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnanimationiteration(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnanimationiteration(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOntransitionrun(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOntransitionrun(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOntransitionend(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOntransitionend(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOntransitioncancel(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOntransitioncancel(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnselectstart(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnselectstart(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnselectionchange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnselectionchange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetElementById(&self, elementId: DOMString) -> Option<Root<Dom<Element>>>

source

fn Children(&self) -> Root<Dom<HTMLCollection>>

source

fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>

source

fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>

source

fn ChildElementCount(&self) -> u32

source

fn Prepend(&self, nodes: Vec<NodeOrString>, _can_gc: CanGc) -> Result<(), Error>

source

fn Append(&self, nodes: Vec<NodeOrString>, _can_gc: CanGc) -> Result<(), Error>

source

fn ReplaceChildren( &self, nodes: Vec<NodeOrString>, _can_gc: CanGc, ) -> Result<(), Error>

source

fn QuerySelector( &self, selectors: DOMString, ) -> Result<Option<Root<Dom<Element>>>, Error>

source

fn QuerySelectorAll( &self, selectors: DOMString, ) -> Result<Root<Dom<NodeList>>, Error>

source

fn SupportedPropertyNames(&self) -> Vec<DOMString>

source

fn NamedGetter( &self, name: DOMString, ) -> Option<WindowProxyOrElementOrHTMLCollection>

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<Document>>, Error>

Object Safety§

This trait is not object safe.

Implementors§