diff options
author | Matt Farina <[email protected]> | 2014-04-29 11:14:29 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2014-04-29 11:14:29 -0400 |
commit | 56c6eac664e7ff446b25db583947b155a94e1584 (patch) | |
tree | daf0eb5b5c10f7a3121f22a4eb89e21274555535 /src/HTML5/Parser/Tokenizer.php | |
parent | 1f2861b528ddf2e4d7306979d3620910f45bac74 (diff) | |
parent | 4401688e65b1d979705fe4e82dfdb283813f0696 (diff) |
Merge pull request #31 from miso-belica/fix-invalid-tag-names
Don't throw an exception for invalid tag names
Diffstat (limited to 'src/HTML5/Parser/Tokenizer.php')
-rw-r--r-- | src/HTML5/Parser/Tokenizer.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php index f21d30b..a78cf23 100644 --- a/src/HTML5/Parser/Tokenizer.php +++ b/src/HTML5/Parser/Tokenizer.php @@ -322,7 +322,9 @@ class Tokenizer { } // We know this is at least one char. - $name = strtolower($this->scanner->charsUntil("/> \n\f\t")); + $name = strtolower($this->scanner->charsWhile( + ":0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + )); $attributes = array(); $selfClose = FALSE; |