lol_html 1.2.1

Streaming HTML rewriter/parser with CSS selector-based API
Documentation
<html><head>
  <title>Child combinator</title>
  <style type="text/css">.white { background-color: transparent ! important; }
.green { background-color: lime; }
div > p.test { background-color: red; }</style>
  <link rel="author" title="Daniel Glazman" href="http://glazman.org/">
  <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 -->
  <meta name="flags" content="">
 </head>
 <body>
 <div>
  <!--[ELEMENT('div > p.test')]--><p class="white test"><!--[TEXT('div > p.test')]-->This paragraph should be unstyled.<!--[/TEXT('div > p.test')]--></p><!--[/ELEMENT('div > p.test')]-->
  <div>
   <!--[ELEMENT('div > p.test')]--><p class="white test"><!--[TEXT('div > p.test')]-->This paragraph should be unstyled.<!--[/TEXT('div > p.test')]--></p><!--[/ELEMENT('div > p.test')]-->
  </div>
 </div>
 <table>
  <tbody>
   <tr>
    <td>
     <p class="green test">This paragraph should have a green background.</p>
    </td>
   </tr>
  </tbody>
 </table>

</body></html>