|
183 | 183 | { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 3 } |
184 | 184 | ]}, |
185 | 185 |
|
186 | | -{"description":"Simili processing instruction", |
| 186 | +{"description":"Processing instruction", |
187 | 187 | "input":"<?namespace>", |
188 | | -"output":[["Comment", "?namespace"]], |
189 | | -"errors":[ |
190 | | - { "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 } |
191 | | -]}, |
| 188 | +"output":[["ProcessingInstruction", "namespace", ""]]}, |
192 | 189 |
|
193 | | -{"description":"A bogus comment stops at >, even if preceded by two dashes", |
194 | | -"input":"<?foo-->", |
195 | | -"output":[["Comment", "?foo--"]], |
196 | | -"errors":[ |
197 | | - { "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 } |
198 | | -]}, |
| 190 | +{"description":"A processing instruction delimited by ?> doesn't contain the delimiting ?", |
| 191 | +"input":"<?foo bar?>", |
| 192 | +"output":[["ProcessingInstruction", "foo", "bar"]]}, |
| 193 | + |
| 194 | +{"description":"A processing instruction's data delimited by ?> contains the correct amount of ?", |
| 195 | +"input":"<?foo bar??>", |
| 196 | +"output":[["ProcessingInstruction", "foo", "bar?"]]}, |
199 | 197 |
|
200 | 198 | {"description":"Unescaped <", |
201 | 199 | "input":"foo < bar", |
|
0 commit comments