-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more test cases when asserting HTML5 Doctype declaration and upda…
…ted README
- Loading branch information
1 parent
b015e74
commit 8185792
Showing
6 changed files
with
44 additions
and
46 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
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
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
22 changes: 12 additions & 10 deletions
22
tests/fixtures/web/html/not-valid-html5-doctype-declaration.html
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,10 +1,12 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Invalid HTML5 Doctype declaration</title> | ||
</head> | ||
<body> | ||
<p>Invalid HTML5 Doctype declaration</p> | ||
</body> | ||
</html> | ||
<title>Wrong title</title> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Valid HTML5 Doctype declaration</title> | ||
</head> | ||
<body> | ||
<p>Valid HTML5 Doctype declaration</p> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
tests/fixtures/web/html/valid-html4-doctype-declaration.html
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Invalid HTML5 Doctype declaration</title> | ||
</head> | ||
<body> | ||
<p>Invalid HTML5 Doctype declaration</p> | ||
</body> | ||
</html> |
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
<body> | ||
<p>Valid HTML5 Doctype declaration</p> | ||
</body> | ||
</html> | ||
</html> |