Skip to content

Commit 0d3c889

Browse files
authored
Test XMLProcessor against the W3 test suite (#141)
This PR: * Brings in the test suite from https://www.w3.org/XML/Test/ and tests XMLProcessor against it. * Adds a few more test cases to XMLProcessor test, specifically around entity decoding, UTF-8 codepoints, and XML namespaces. ## Testing instructions Confirm the CI checks pass
1 parent f4af30b commit 0d3c889

File tree

3,390 files changed

+49260
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,390 files changed

+49260
-38
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!ELEMENT foo ANY>
2+
<!ENTITY % e "bar CDATA #IMPLIED>">
3+
<!ATTLIST foo %e;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!DOCTYPE foo SYSTEM "E14.dtd">
2+
<foo/>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo EMPTY>
3+
<!ENTITY empty "">
4+
]>
5+
<foo>&empty;</foo>
6+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo EMPTY>
3+
]>
4+
<foo><!-- comment --></foo>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo EMPTY>
3+
]>
4+
<foo><?pi xxx?></foo>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo EMPTY>
3+
]>
4+
<foo> </foo>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo (foo*)>
3+
<!ENTITY space " ">
4+
]>
5+
<foo><foo/>&space;<foo/></foo>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo (foo*)>
3+
<!ENTITY space "&#32;">
4+
]>
5+
<foo><foo/>&space;<foo/></foo>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo (foo*)>
3+
]>
4+
<foo><foo/>&#32;<foo/></foo>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!DOCTYPE foo [
2+
<!ELEMENT foo (foo*)>
3+
<!ENTITY space "&#38;#32;">
4+
]>
5+
<foo><foo/>&space;<foo/></foo>

0 commit comments

Comments
 (0)