pub fn create_element(doc: &mut BaseDocument, tag: &str) -> Result<NodeId>Expand description
document.createElement(tag).
The tag is ASCII-lowercased, as the HTML parser would have done. The
element is created detached; nothing about layout changes until it is
inserted, which is why blitz-script deliberately does not mark layout
dirty here either.