Use HTMLTitleElement::new in Document::SetTitle.