W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: [Selectors4] case-insensitive attribute value matching (in XML)

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Mon, 25 Jul 2011 19:46:49 +0200
Message-Id: <328F5250-8574-4053-889E-F7C9F8AB149D@crissov.de>
To: CSS WG <www-style@w3.org>
fantasai:
>  http://dev.w3.org/csswg/selectors4/#attribute-case

  [att=val]i {foo: bar}

I’d suggest to phrase it in a more general, extendable way, if this is indeed the way you want to go. (In my humble opinion this looks too much like grep and too little like CSS, although I would agree, that the character combinations I proposed earlier look just as scary.)

: 6.3 Attribute value selector flags
:
: To match attribute values regardless of document language rules,
: the attribute selector may be immediately followed by a sequence
: of single-character, case-insensitive identifiers (“flags”). Later
: flags are ignored if they are incompatible with earlier flags,
: otherwise the order of identifiers is irrelevant
:
: This module specifies the following flags:
:
: ‘i’: When this flag is present, UAs must match the attribute's
:      value case-insensitively within the ASCII range.
…
: ‘s’: When this flag is present, UAs must match the attribute's
:      value case-sensitively.
: ‘n’: When this flag is present, UAs must treat the attribute's
:      value as a decimal number. This flag cannot be used with
:      the substring comparisons ‘^=’, ‘$=’, ‘*=’, ‘|=’. It may
:      be used with the item comparison ‘~=’. Further numerical
:      comparisons may be defined in the future.
: ‘b’: When this flag is present, UAs must treat the attribute's
:      value as a binary state. …
…
Received on Monday, 25 July 2011 17:47:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:42 GMT