diff --git a/test/ecmascript/assert/element.hasChildNodes.html b/test/ecmascript/assert/element.hasChildNodes.html new file mode 100644 index 00000000..ad1b52ec --- /dev/null +++ b/test/ecmascript/assert/element.hasChildNodes.html @@ -0,0 +1,32 @@ + + + + + + +

Click the button to see if the ul element has any child nodes.

+ + + +

Try removing the child nodes of the list element, and the result will be false instead of true.

+ +

Note: Whitespace inside a node is considered as text nodes, so if you leave any white space or line feeds inside an element, that element still has child nodes.

+ +

+ + + + +