tor-browser

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

attr-whitespace.xhtml (1308B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      3  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      4 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
      5 <head>
      6    <title>Whitespace in attributes</title>
      7    <link rel="author" title="Manish Goregaokar" href="mailto:manishearth@gmail.com" />
      8    <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
      9    <link rel="help" href="https://drafts.csswg.org/css-values-3/#attr-notation"/>
     10 <style>
     11 @namespace ns url(http://www.example.com/ns);
     12 /* Spaces within attr() are fine*/
     13 #a::after {
     14 
     15  content: attr(          
     16      data-text  
     17 
     18 
     19          );
     20 }
     21 #b::after {
     22 
     23  content: attr(ns|data-text);
     24 }
     25 #c::after {
     26 
     27  content: attr(          
     28      ns|data-text  
     29 
     30 
     31          );
     32 }
     33 
     34 /* No whitespace around the | */
     35 #d::after {
     36 
     37  content: attr(          
     38      ns      |data-text
     39 
     40 
     41          );
     42 }
     43 #e::after {
     44 
     45  content: attr(          
     46      ns|       data-text
     47 
     48 
     49          );
     50 }
     51 </style>
     52 </head>
     53 <body xmlns:ns="http://www.example.com/ns">
     54 <div id="a" data-text="World">Hello</div>
     55 <div id="b" ns:data-text="World">Hello</div>
     56 <div id="b" ns:data-text="World">Hello</div>
     57 <div id="d" ns:data-text="World">Hello</div>
     58 <div id="e" ns:data-text="World">Hello</div>
     59 </body>
     60 </html>