Most programming languages implement unitialized values as NULL, ZERO, random data, something special (JavaScript: undefined
) or an empty string. In XML an element can be empty in two ways and in DOM the textContent
property is an empty string for both.
Valid examples:
<TodoItem/>