lol_html 1.2.1

Streaming HTML rewriter/parser with CSS selector-based API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html><html><head>
  <title>:before with ::before</title>
  <style type="text/css">
  span:before { background-color: red; content: 'FAILED'; }
  span::before { background-color: lime; content: 'PASSED'; }
</style>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <link rel="match" href="reference/this-test-has-passed-desc.xht">
  <meta name="flags" content="">
 </head>
 <body>
   <p>This test has <span></span>.</p>
   <p>(If the previous line just reads "This test has ." then this test has failed.)</p>

</body></html>