From b82a1017bf38689fe65428293e532747613b783b Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Fri, 24 May 2024 09:22:31 +0200 Subject: [PATCH] test case for https://github.com/nahsra/antisamy/issues/453 --- .../testfiles/table/test-table-select.html | 1 + .../table/test-table-select.html.canonical | 20 +++++++++++++++++++ .../test-table-select.html.canonical-frg | 14 +++++++++++++ .../test-table-select.html.canonical-html | 1 + 4 files changed, 36 insertions(+) create mode 100644 src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html create mode 100644 src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical create mode 100644 src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-frg create mode 100644 src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-html diff --git a/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html new file mode 100644 index 00000000..cc542154 --- /dev/null +++ b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical new file mode 100644 index 00000000..08357e78 --- /dev/null +++ b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical @@ -0,0 +1,20 @@ +(HTML +(head +)head +(BODY +(table +(SELECT +Aname Lang +(OPTION +Avalue da +"Dansk +)OPTION +(OPTION +Aselected selected +Avalue en +"English +)OPTION +)SELECT +)table +)BODY +)HTML diff --git a/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-frg b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-frg new file mode 100644 index 00000000..989cf9cd --- /dev/null +++ b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-frg @@ -0,0 +1,14 @@ +(table +(SELECT +Aname Lang +(OPTION +Avalue da +"Dansk +)OPTION +(OPTION +Aselected selected +Avalue en +"English +)OPTION +)SELECT +)table diff --git a/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-html b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-html new file mode 100644 index 00000000..96f91803 --- /dev/null +++ b/src/test/resources/org/htmlunit/cyberneko/testfiles/table/test-table-select.html.canonical-html @@ -0,0 +1 @@ +
\ No newline at end of file