Skip to content

Commit e446320

Browse files
rolandshoemakerannevk
authored andcommitted
Fix <input><option> test case
When the changes were made to <select>, the test suite was updated (#178). As part of this an <input> was added to the serialization of the <input><option> case. This doesn't match the spec though. In particular in 'A start tag whose tag name is "input"' in 13.2.6.4.7 says that "If the parser was created as part of the HTML fragment parsing algorithm (fragment case) and the context element passed to that algorithm is a select element" then the token should be ignored. Since the context for the <input><option> case is "select", the input token should be ignored, resulting in a tree that contains just <option>.
1 parent 85c968a commit e446320

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tree-construction/tests_innerHTML_1.dat‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,10 +790,10 @@ select
790790
#data
791791
<input><option>
792792
#errors
793+
(1,7): XXX-undefined-error
793794
#document-fragment
794795
select
795796
#document
796-
| <input>
797797
| <option>
798798

799799
#data

0 commit comments

Comments
 (0)