glucose/document

Functions

pub fn append_child(node node: HTMLElement) -> HTMLElement
pub fn body() -> HTMLElement
pub fn content_type() -> String
pub fn create_element(tag tag: String) -> HTMLElement
pub fn create_text_node(data data: String) -> HTMLElement
pub fn doc() -> Document
pub fn document_uri() -> String
pub fn get_cookie() -> String
pub fn get_selection() -> Result(HTMLElement, Nil)
pub fn has_focus() -> Bool
pub fn head() -> HTMLElement
pub fn location() -> String
pub fn query_selector(
  selector selector: String,
) -> Result(HTMLElement, Nil)

Select the first element matching the selector string

pub fn query_selector_all(
  selector selector: String,
) -> List(HTMLElement)

Select all elements matching the selector string

pub fn ready_state() -> String
pub fn referrer() -> String
pub fn set_cookie(v v: String) -> Nil
pub fn set_location(url url: String) -> Nil
pub fn set_title(v v: String) -> Nil
pub fn title() -> String
pub fn url() -> a
Search Document