Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS 2.1 Test Suite: generated content</title> |
michael@0 | 5 | <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> |
michael@0 | 6 | <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> |
michael@0 | 7 | <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/> |
michael@0 | 8 | <meta name="flags" content="dom" /> |
michael@0 | 9 | <style> |
michael@0 | 10 | body { |
michael@0 | 11 | font-family:sans-serif; |
michael@0 | 12 | } |
michael@0 | 13 | body::before { |
michael@0 | 14 | content:attr(my-attr); |
michael@0 | 15 | } |
michael@0 | 16 | body::after { |
michael@0 | 17 | content:attr(my-attr-2); |
michael@0 | 18 | } |
michael@0 | 19 | </style> |
michael@0 | 20 | <script> |
michael@0 | 21 | function fixupDOM() { |
michael@0 | 22 | document.body.setAttribute("my-attr", "before"); |
michael@0 | 23 | document.body.setAttribute("my-attr-2", "after!"); |
michael@0 | 24 | document.documentElement.className = ""; |
michael@0 | 25 | } |
michael@0 | 26 | </script> |
michael@0 | 27 | </head> |
michael@0 | 28 | <body my-attr-2="xyz" onload="fixupDOM()"> |
michael@0 | 29 | </body> |
michael@0 | 30 | </html> |