[csswg-drafts] [selectors-4] Serializing Case-sensitive attribute selectors (#10208)

karlcow has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] Serializing Case-sensitive attribute selectors ==
In Issue #2101 on [Nov 15, 2018](https://github.com/w3c/csswg-drafts/issues/2101#issuecomment-438751096), the `s` flag was added to the spec to force case-sensitive attribute selectors matching: [Case-sensitivity](https://drafts.csswg.org/selectors-4/#attribute-case)

Then there is the section of the specification about [serializing selectors](https://drafts.csswg.org/cssom/#serializing-selectors), the section for attribute selector.


> 1. Append "[" (U+005B) to s.
> 2. If the [namespace prefix](https://drafts.csswg.org/css-namespaces-3/#namespace-prefix) maps to a namespace that is not the null namespace (not in a namespace) append the [serialization](https://drafts.csswg.org/cssom/#serialize-an-identifier) of the namespace prefix as an identifier, followed by a "|" (U+007C) to s.
> 3. Append the [serialization](https://drafts.csswg.org/cssom/#serialize-an-identifier) of the attribute name as an identifier to s.
> 4. If there is an attribute value specified, append "=", "~=", "|=", "^=", "$=", or "*=" as appropriate (depending on the type of attribute selector), followed by the [serialization](https://drafts.csswg.org/cssom/#serialize-a-string) of the attribute value as a string, to s.
> 5. If the attribute selector has the case-sensitivity flag present, append " i" (U+0020 U+0069) to s.
> 6. Append "]" (U+005D) to s.

The step 5 is taking into account the `i` modifier, but doesn't mention the new `s` modifier. 



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10208 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 15 April 2024 07:22:39 UTC