test suite test elements
test case test namespace id()
assert text library • HTML NS • short name == "html"
assert text library • HTML NS • to string() == "html"
test case test element id()
assert text library • P • short name == "p"
assert text library • P • to string() == "html:p"
assert text library • DIV • short name == "div"
assert text library • DIV • to string() == "html:div"
test case test base element()
assert element • get id == text library • P
assert element • attributes • is empty
assert element • children is null
test case test make element()
node0 : base element • new(text library • P)
text node node1 : "foo"
nodes : [node0, node1]
assert element is base element
assert element • get id == text library • BODY
assert element • attributes • is empty
children : element • children
assert children is list text node
child nodes : children • nodes
assert child nodes • size == 2
child0 : child nodes • first
assert child0 is base element
assert child0 • get id == text library • P
assert child0 • attributes • is empty
assert child0 • children is null
child1 : child nodes[1]
assert child1 is string
assert child1 == "foo"