E[foo="bar" i]

Case-Sensitivity

The case-sensitivity selector matches any element whose specified attribute is equal to a value of any case combination.

Browser Support

Google Chrome
No
Mozilla Firefox
No
Safari
No
Opera Browser
No

Syntax

E[attr="val" i]
/* Where "i" stands for case-insensitive. */
}

Example

/* In this example, all input elements containing a value of name, Name, NAME, etc. */

input[value="name" i] {
border: 1px solid #00aa00;
}

Information is based on Selectors Level 4 - W3C Working Draft (last updated on May 2, 2013)
Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.