// retoor <retoor@molodetz.nl>
import "html" for Document
var doc = Document.parse("<html><head><title>Test Title</title></head><body><div>Content</div></body></html>")
System.print(doc.documentElement != null) // expect: true
System.print(doc.documentElement.tagName) // expect: HTML
System.print(doc.head != null) // expect: true
System.print(doc.head.tagName) // expect: HEAD
System.print(doc.body != null) // expect: true
System.print(doc.body.tagName) // expect: BODY
System.print(doc.title) // expect: Test Title
doc.title = "New Title"
System.print(doc.title) // expect: New Title
var html = doc.outerHTML
System.print(html.indexOf("<html") >= 0) // expect: true
System.print(html.indexOf("</html>") >= 0) // expect: true
var inner = doc.innerHTML
System.print(inner.indexOf("<head") >= 0) // expect: true