Skip to content

Commit

Permalink
Merge pull request #248 from citricguy/hex-typo
Browse files Browse the repository at this point in the history
Just a quick typo fix.
  • Loading branch information
goetas authored Jun 3, 2024
2 parents f5ac2c0 + f8b3564 commit 973bc37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HTML5/Parser/CharacterReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function lookupDecimal($int)
}

/**
* Given a hexidecimal number, return the UTF-8 character.
* Given a hexadecimal number, return the UTF-8 character.
*
* @param $hexdec
*
Expand Down
2 changes: 1 addition & 1 deletion src/HTML5/Parser/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ protected function decodeCharacterReference($inAttribute = false)
return '&';
}

// Hexidecimal encoding.
// Hexadecimal encoding.
// X[0-9a-fA-F]+;
// x[0-9a-fA-F]+;
if ('x' === $tok || 'X' === $tok) {
Expand Down

0 comments on commit 973bc37

Please sign in to comment.