summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2017-07-26 16:33:02 +0300
committerAsmir Mustafic <[email protected]>2017-07-26 16:37:39 +0300
commit0f1c4f044092a5866431bc664860ba8ccf2a33e1 (patch)
treee41c8fb6715556b5fac2fd3e2c84d193b8d18665 /src/HTML5/Parser
parent5f2ef1d0060f652833ef251627c6c7f7c23e2728 (diff)
Fix https://github.com/Masterminds/html5-php/issues/131
Diffstat (limited to 'src/HTML5/Parser')
-rw-r--r--src/HTML5/Parser/Tokenizer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php
index 02b2aff..45774b2 100644
--- a/src/HTML5/Parser/Tokenizer.php
+++ b/src/HTML5/Parser/Tokenizer.php
@@ -1071,7 +1071,7 @@ class Tokenizer
else {
// Attempt to consume a string up to a ';'.
// [a-zA-Z0-9]+;
- $cname = $this->scanner->getAsciiAlpha();
+ $cname = $this->scanner->getAsciiAlphaNum();
$entity = CharacterReference::lookupName($cname);
// When no entity is found provide the name of the unmatched string