Validate all node nesting based on HTML spec