Skip to main content

element

Function element 

Source
pub fn element(tag: &str) -> Document
Expand description

Create a new element as a Document.

Table elements (tr, th, td, tbody, thead, tfoot) are wrapped in proper table context for correct HTML parsing.