XmlDocument

Struct XmlDocument 

Source
pub struct XmlDocument { /* private fields */ }
Expand description

The XmlDocument class.

MDN Documentation

This API requires the following crate features to be activated: XmlDocument

Implementations§

Source§

impl XmlDocument

Source

pub fn async(&self) -> bool

Getter for the async field of this object.

MDN Documentation

This API requires the following crate features to be activated: XmlDocument

Source§

impl XmlDocument

Source

pub fn set_async(&self, value: bool)

Setter for the async field of this object.

MDN Documentation

This API requires the following crate features to be activated: XmlDocument

Source§

impl XmlDocument

Source

pub fn load(&self, url: &str) -> Result<bool, JsValue>

The load() method.

MDN Documentation

This API requires the following crate features to be activated: XmlDocument

Methods from Deref<Target = Document>§

Source

pub fn implementation(&self) -> Result<DomImplementation, JsValue>

Getter for the implementation field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, DomImplementation

Source

pub fn url(&self) -> Result<String, JsValue>

Getter for the URL field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn document_uri(&self) -> Result<String, JsValue>

Getter for the documentURI field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn compat_mode(&self) -> String

Getter for the compatMode field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn character_set(&self) -> String

Getter for the characterSet field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn charset(&self) -> String

Getter for the charset field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn input_encoding(&self) -> String

Getter for the inputEncoding field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn content_type(&self) -> String

Getter for the contentType field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn doctype(&self) -> Option<DocumentType>

Getter for the doctype field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, DocumentType

Source

pub fn document_element(&self) -> Option<Element>

Getter for the documentElement field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, Element

Source

pub fn location(&self) -> Option<Location>

Getter for the location field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, Location

Source

pub fn referrer(&self) -> String

Getter for the referrer field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn last_modified(&self) -> String

Getter for the lastModified field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn ready_state(&self) -> String

Getter for the readyState field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn title(&self) -> String

Getter for the title field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn set_title(&self, value: &str)

Setter for the title field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn dir(&self) -> String

Getter for the dir field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn set_dir(&self, value: &str)

Setter for the dir field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document

Source

pub fn body(&self) -> Option<HtmlElement>

Getter for the body field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlElement

Source

pub fn set_body(&self, value: Option<&HtmlElement>)

Setter for the body field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlElement

Source

pub fn head(&self) -> Option<HtmlHeadElement>

Getter for the head field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlHeadElement

Source

pub fn images(&self) -> HtmlCollection

Getter for the images field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlCollection

Source

pub fn embeds(&self) -> HtmlCollection

Getter for the embeds field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlCollection

Source

pub fn plugins(&self) -> HtmlCollection

Getter for the plugins field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlCollection

Getter for the links field of this object.

MDN Documentation

This API requires the following crate features to be activated: Document, HtmlCollection

Source

pub fn