CSS 3 Module <== Test # ==>
W3C Selectors 253 of 276 of the static tests category
Testing Date Revision
Namespaced attribute selectors (ID #172a) 2002-09-20 1.0

NOTE: The UA must support namespaces for this test.

This should be green. This should be green. This should be green. This should be green. This should be green. This should be green. This should be green.
 tests, tests * { display: block; color: green; }
 testA[|attribute] { color: red; }
 testB[|attribute="fail"] { color: red; }
 testC[|attribute~="fail"] { color: red; }
 testD[|attribute^="fail"] { color: red; }
 testE[|attribute*="fail"] { color: red; }
 testF[|attribute$="fail"] { color: red; }
 testG[|attribute|="fail"] { color: red; }
  <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
   <testA test:attribute="fail">This should be green.</testA>
   <testB test:attribute="fail">This should be green.</testB>
   <testC test:attribute="fail">This should be green.</testC>
   <testD test:attribute="fail">This should be green.</testD>
   <testE test:attribute="fail">This should be green.</testE>
   <testF test:attribute="fail">This should be green.</testF>
   <testG test:attribute="fail">This should be green.</testG>
  </tests>