-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
351 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
"foo bar" | ||
'foo bar' | ||
"%{REMOTE_HOST}" | ||
|
||
----- | ||
[ | ||
["string", ["\"foo bar\""]], | ||
["string", ["'foo bar'"]], | ||
[ | ||
"string", [ | ||
"\"", | ||
["variable", "%{REMOTE_HOST}"], | ||
"\"" | ||
] | ||
] | ||
] | ||
"foo bar" | ||
'foo bar' | ||
"%{REMOTE_HOST}" | ||
----- | ||
[ | ||
["string", ["\"foo bar\""]], | ||
["string", ["'foo bar'"]], | ||
[ | ||
"string", [ | ||
"\"", | ||
["variable", "%{REMOTE_HOST}"], | ||
"\"" | ||
] | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
var a = 5; | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "var"], | ||
" a ", | ||
["operator", "="], | ||
["number", "5"], | ||
["punctuation", ";"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
This is a comment explaining this test case. | ||
var a = 5; | ||
---------------------------------------------------- | ||
[ | ||
["keyword", "var"], | ||
" a ", | ||
["operator", "="], | ||
["number", "5"], | ||
["punctuation", ";"] | ||
] | ||
---------------------------------------------------- | ||
This is a comment explaining this test case. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<![CDATA[ foo bar baz ]]> | ||
<![CDATA[ | ||
foo bar baz | ||
]]> | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["cdata", "<![CDATA[ foo bar baz ]]>"], | ||
["cdata", "<![CDATA[\r\nfoo bar baz\r\n]]>"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
<![CDATA[ foo bar baz ]]> | ||
<![CDATA[ | ||
foo bar baz | ||
]]> | ||
---------------------------------------------------- | ||
[ | ||
["cdata", "<![CDATA[ foo bar baz ]]>"], | ||
["cdata", "<![CDATA[\r\nfoo bar baz\r\n]]>"] | ||
] | ||
---------------------------------------------------- | ||
Checks for CDATA sections, single-line and multi-line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!----> | ||
<!-- foo bar --> | ||
<!-- foo bar | ||
baz --> | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["comment", "<!---->"], | ||
["comment", "<!-- foo bar -->"], | ||
["comment", "<!-- foo bar\r\nbaz -->"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
<!----> | ||
<!-- foo bar --> | ||
<!-- foo bar | ||
baz --> | ||
---------------------------------------------------- | ||
[ | ||
["comment", "<!---->"], | ||
["comment", "<!-- foo bar -->"], | ||
["comment", "<!-- foo bar\r\nbaz -->"] | ||
] | ||
---------------------------------------------------- | ||
Checks for empty comment, single-line comment and multi-line comment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!DOCTYPE html> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["doctype", "<!DOCTYPE html>"], | ||
["doctype", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">"], | ||
["doctype", "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
<!DOCTYPE html> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
---------------------------------------------------- | ||
[ | ||
["doctype", "<!DOCTYPE html>"], | ||
["doctype", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">"], | ||
["doctype", "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"] | ||
] | ||
---------------------------------------------------- | ||
Checks for different doctypes, single-line and multi-line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
& ϑ ⛵   | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["entity", "&"], | ||
["entity", "ϑ"], | ||
["entity", "⛵"], | ||
["entity", " "] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
& ϑ ⛵   | ||
---------------------------------------------------- | ||
[ | ||
["entity", "&"], | ||
["entity", "ϑ"], | ||
["entity", "⛵"], | ||
["entity", " "] | ||
] | ||
---------------------------------------------------- | ||
Checks for HTML/XML character entity references. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,63 @@ | ||
<Läufer>foo</Läufer> | ||
<tag läufer="läufer"> | ||
<läufer:tag>baz</läufer:tag> | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "<"], | ||
"Läufer" | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
"foo", | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "</"], | ||
"Läufer" | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
|
||
["tag", [ | ||
["tag", [ | ||
["punctuation", "<"], | ||
"tag" | ||
]], | ||
["attr-name", [ | ||
"läufer" | ||
]], | ||
["attr-value", [ | ||
["punctuation", "="], | ||
["punctuation", "\""], | ||
"läufer", | ||
["punctuation", "\""] | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
|
||
["tag", [ | ||
["tag", [ | ||
["punctuation", "<"], | ||
["namespace", "läufer:"], | ||
"tag" | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
"baz", | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "</"], | ||
["namespace", "läufer:"], | ||
"tag" | ||
]], | ||
["punctuation", ">"] | ||
]] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for tags, attributes and namespaces containing unicode characters. | ||
<Läufer>foo</Läufer> | ||
<tag läufer="läufer"> | ||
<läufer:tag>baz</läufer:tag> | ||
---------------------------------------------------- | ||
[ | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "<"], | ||
"Läufer" | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
"foo", | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "</"], | ||
"Läufer" | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "<"], | ||
"tag" | ||
]], | ||
["attr-name", [ | ||
"läufer" | ||
]], | ||
["attr-value", [ | ||
["punctuation", "="], | ||
["punctuation", "\""], | ||
"läufer", | ||
["punctuation", "\""] | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "<"], | ||
["namespace", "läufer:"], | ||
"tag" | ||
]], | ||
["punctuation", ">"] | ||
]], | ||
"baz", | ||
["tag", [ | ||
["tag", [ | ||
["punctuation", "</"], | ||
["namespace", "läufer:"], | ||
"tag" | ||
]], | ||
["punctuation", ">"] | ||
]] | ||
] | ||
---------------------------------------------------- | ||
Checks for tags, attributes and namespaces containing unicode characters. | ||
See #585 for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet href="tei2html.xsl" | ||
type="text/xsl"?> | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["prolog", "<?xml version=\"1.0\"?>"], | ||
["prolog", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"], | ||
["prolog", "<?xml-stylesheet href=\"tei2html.xsl\"\r\ntype=\"text/xsl\"?>"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
<?xml version="1.0"?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet href="tei2html.xsl" | ||
type="text/xsl"?> | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["prolog", "<?xml version=\"1.0\"?>"], | ||
["prolog", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"], | ||
["prolog", "<?xml-stylesheet href=\"tei2html.xsl\"\r\ntype=\"text/xsl\"?>"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for different XML prologs, single-line and multi-line. |
Oops, something went wrong.