The CSS level 3 Syntax, which is a Recommendation since 2018, allows much more characters in id and class selectors than the ones currently supported by the "Attributes" extension:
This pull request adds a test to check several valid class and id names that are currently failing to be parsed as valid attribute values by the "Attributes" extension, and it proposes a fix for this issue.
The CSS level 3 Syntax, which is a Recommendation since 2018, allows much more characters in
id
andclass
selectors than the ones currently supported by the "Attributes" extension:https://github.com/thephpleague/commonmark/blob/91c24291965bd6d7c46c46a12ba7492f83b1cadf/src/Extension/Attributes/Util/AttributesHelper.php#L26
The formal CSS level 3 selectors grammar is detailed here: https://www.w3.org/TR/selectors-3/#w3cselgrammar
This pull request adds a test to check several valid
class
andid
names that are currently failing to be parsed as valid attribute values by the "Attributes" extension, and it proposes a fix for this issue.