lol_html 0.3.2

Streaming HTML rewriter/parser with CSS selector-based API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
<html><head><!--[TEXT(':root')]-->
  <!--[/TEXT(':root')]--><title><!--[TEXT(':root')]-->:target pseudo-class<!--[/TEXT(':root')]--></title><!--[TEXT(':root')]-->
  <!--[/TEXT(':root')]--><style type="text/css"><!--[TEXT(':root')]-->:root { background-color: green; }
:target { background-color: red; }<!--[/TEXT(':root')]--></style><!--[TEXT(':root')]-->
  <!--[/TEXT(':root')]--><link rel="author" title="Daniel Glazman" href="http://glazman.org/"><!--[TEXT(':root')]-->
  <!--[/TEXT(':root')]--><link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"><!--[TEXT(':root')]-->
  <!--[/TEXT(':root')]--><link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"><!--[TEXT(':root')]--> <!--[/TEXT(':root')]--><!--[COMMENT(':root')]--><!-- bogus link to make sure it gets found --><!--[/COMMENT(':root')]--><!--[TEXT(':root')]-->
  <!--[/TEXT(':root')]--><meta name="flags" content=""><!--[TEXT(':root')]-->
 <!--[/TEXT(':root')]--></head><!--[TEXT(':root')]-->
 <!--[/TEXT(':root')]--><body><!--[TEXT(':root')]-->
 <!--[/TEXT(':root')]--><p><!--[TEXT(':root')]-->This page should be green.<!--[/TEXT(':root')]--></p><!--[TEXT(':root')]-->

<!--[/TEXT(':root')]--></body></html>