This repository has been archived by the owner on Apr 14, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:petdance/html-lint into nolint
Conflicts: .gitignore lib/HTML/Lint.pm lib/HTML/Lint/Error.pm
- Loading branch information
Showing
13 changed files
with
243 additions
and
71 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 |
---|---|---|
|
@@ -2,7 +2,4 @@ Makefile | |
Makefile.old | ||
blib/ | ||
pm_to_blib | ||
|
||
# These two are my symlinks | ||
Error.pm | ||
Lint.pm | ||
MYMETA.* |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!perl | ||
|
||
use warnings; | ||
use strict; | ||
|
||
require 't/LintTest.pl'; | ||
|
||
checkit( [ | ||
[ 'text-unknown-entity' => qr/Entity &metalhorns; is unknown/ ], | ||
[ 'text-invalid-entity' => qr/Entity � is invalid/ ], | ||
[ 'text-invalid-entity' => qr/Entity � is invalid/ ], | ||
[ 'text-unknown-entity' => qr/Entity &xdeadbeef; is unknown/ ], | ||
], [<DATA>] ); | ||
|
||
__DATA__ | ||
<html> | ||
<head> | ||
<title>Ace of ♠: A tribute to Motörhead. ® &metalhorns;</title> | ||
<script> | ||
function foo() { | ||
if ( 6 == 9 && 25 == 6 ) { | ||
x = 14; | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body bgcolor="white"> | ||
<p> | ||
Thanks for visiting Ace of ♠ <!-- Numeric version of ♠ --> | ||
<p> | ||
Ace of ♠ is your single source for everything related to Motörhead. | ||
<p> | ||
Here's an icon of my girlfriend Jenny: � <!-- invalid because we cap at 65536 --> | ||
<p> | ||
And here's an icon of a deceased cow: � <!-- Invalid because we cap at xFFFF --> | ||
<p> | ||
Another deceased cow: &xdeadbeef; <!-- Not a valid hex entity, but unknown to our lookup tables --> | ||
<p> | ||
Here's an awesome link to <a href="http://www.youtube.com/watch?v=8yLhA0ROGi4&feature=related">"You Better Swim"</a> from the SpongeBob movie. | ||
<!-- | ||
Here in the safety of comments, we can put whatever &invalid; and &malformed entities we want, & | ||
nobody can stop us. Except maybe Cheech & Chong. | ||
--> | ||
</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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!perl | ||
|
||
use warnings; | ||
use strict; | ||
|
||
require 't/LintTest.pl'; | ||
|
||
checkit( [ | ||
[ 'text-unclosed-entity' => qr/Entity ö is missing its closing semicolon/ ], | ||
], [<DATA>] ); | ||
|
||
__DATA__ | ||
<html> | ||
<head> | ||
<title>Ace of ♠: A tribute to Motörhead.</title> | ||
<script> | ||
function foo() { | ||
if ( 6 == 9 && 25 == 6 ) { | ||
x = 14; | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body bgcolor="white"> | ||
Motörhead rulez! | ||
<p> | ||
Here's an awesome link to <a href="http://www.youtube.com/watch?v=8yLhA0ROGi4&feature=related">"You Better Swim"</a> from the SpongeBob movie. | ||
<!-- | ||
Here in the safety of comments, we can put whatever &invalid; and &malformed entities we want, & | ||
nobody can stop us. Except maybe Cheech & Chong. | ||
--> | ||
</body> | ||
</html> |
Oops, something went wrong.