tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

xml-class-selector.xml (793B)


      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  <link rel="help" href="https://dom.spec.whatwg.org/#dom-element-classname" />
      6  <link rel="help" href="https://crbug.com/649444" />
      7  <link rel="match" href="xml-class-selector-ref.xml" />
      8  <body>
      9    <p>The .class selector should work in any namespace. Both boxes should be green.</p>
     10    <Boxes xmlns="http://foo">
     11      <box class="green">.classname selector</box>
     12      <box class="green2">*[class~="classname"] selector</box>
     13    </Boxes>
     14 
     15    <style>
     16      box {background:red;}
     17      .green {background: green;}
     18      *[class~="green2"] {background: green;}
     19    </style>
     20  </body>
     21 </html>