Skip to content

Commit 7ca5d4d

Browse files
committed
case insensitive for HTML attributes
1 parent 0e45a8e commit 7ca5d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/RegexHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class RegexHelper
4242
public const PARTIAL_IN_PARENS_NOSP = '\((' . self::PARTIAL_REG_CHAR . '|' . self::PARTIAL_ESCAPED_CHAR . '|\\\\)*\)';
4343
public const PARTIAL_TAGNAME = '[a-z][a-z0-9-]*';
4444
public const PARTIAL_BLOCKTAGNAME = '(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)';
45-
public const PARTIAL_ATTRIBUTENAME = '[a-z_:][a-z0-9:._-]*';
45+
public const PARTIAL_ATTRIBUTENAME = '[A-Za-z_:][A-Za-z0-9:._-]*';
4646
public const PARTIAL_UNQUOTEDVALUE = '[^"\'=<>`\x00-\x20]+';
4747
public const PARTIAL_SINGLEQUOTEDVALUE = '\'[^\']*\'';
4848
public const PARTIAL_DOUBLEQUOTEDVALUE = '"[^"]*"';

0 commit comments

Comments
 (0)