xml-class-selector-ref.xml (495B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <title>Class selectors in an XML namespace</title> 4 <link rel="author" href="mailto:masonf@chromium.org" /> 5 <body> 6 <p>The .class selector should work in any namespace. Both boxes should be green.</p> 7 <Boxes xmlns="http://foo"> 8 <box>.classname selector</box> 9 <box>*[class~="classname"] selector</box> 10 </Boxes> 11 12 <style> 13 box {background:green;} 14 </style> 15 </body> 16 </html>