Skip to content

Commit f3f9297

Browse files
sideshowbarkerhsivonen
authored andcommitted
Make TreeTester ignore tests for keygen element
This change makes TreeTester ignore any tests which have the keygen element in their expected results. Otherwise, without this change, we fail the tokenizer test at https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/tests7.dat#L409 due to the fact with 8f9f6bc we completely removed keygen parsing support from our code. (However, the keygen parsing requirements are still in the HTML spec, so the test case cannot be removed from html5lib-tests.)
1 parent f23387a commit f3f9297

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test-src/nu/validator/htmlparser/test/TreeTester.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ private boolean runTest() throws Throwable {
213213
expectedBuilder.append((char)ch);
214214
}
215215
String expected = expectedBuilder.toString();
216+
if (expected.contains("<keygen>")) {
217+
return true;
218+
}
216219
String actual = sw.toString();
217220

218221
LinkedList<String> actualErrors = leh.getErrors();

0 commit comments

Comments
 (0)