class

JustHTML::Document

Inherits JustHTML::Node < Reference < Object

Constructors

new(encoding : String | Nil = nil)
Source

Instance methods

clone(deep : Bool = false) : Document
Source
encoding
Source
encoding=(encoding : String | Nil)
Source
errors
Source
errors=(errors : Array(ParseError))
Source
name
Source
query_selector(selector_string : String) : Element | Nil

Query for the first matching element using CSS selector

Source
query_selector_all(selector_string : String) : Array(Element)

Query for all matching elements using CSS selector

Source
to_html

Serialize document to HTML string

Source
to_text

Extract text content from document

Source