@@ -10,6 +10,7 @@ But after some initial refactoring work, we began a new parser.
1010- Event-based (SAX-like) parser
1111- DOM tree builder
1212- Interoperability with QueryPath [[ in progress] ( https://github.com/technosophos/querypath/issues/114 )]
13+ - Runs on ** PHP** 5.3.0 or newer and ** HHVM** 3.2 or newer
1314
1415[ ![ Build Status] ( https://travis-ci.org/Masterminds/html5-php.png?branch=master )] ( https://travis-ci.org/Masterminds/html5-php ) [ ![ Latest Stable Version] ( https://poser.pugx.org/masterminds/html5/v/stable.png )] ( https://packagist.org/packages/masterminds/html5 ) [ ![ Coverage Status] ( https://coveralls.io/repos/Masterminds/html5-php/badge.png?branch=master )] ( https://coveralls.io/r/Masterminds/html5-php?branch=master )
1516
@@ -22,12 +23,12 @@ To install, add `masterminds/html5` to your `composer.json` file:
2223```
2324{
2425 "require" : {
25- "masterminds/html5": "1 .*"
26+ "masterminds/html5": "2 .*"
2627 },
2728}
2829```
2930
30- (You may substitute ` 1 .*` for a more specific release tag, of
31+ (You may substitute ` 2 .*` for a more specific release tag, of
3132course.)
3233
3334From there, use the ` composer install ` or ` composer update ` commands to
@@ -118,7 +119,7 @@ different rule sets to be used.
118119- The ` Traverser ` , which is a special-purpose tree walker. It visits
119120each node node in the tree and uses the ` OutputRules ` to transform the node
120121into a string.
121- - ` \ HTML5` manages the ` Traverser ` and stores the resultant data
122+ - ` HTML5 ` manages the ` Traverser ` and stores the resultant data
122123in the correct place.
123124
124125The serializer (` save() ` , ` saveHTML() ` ) follows the
@@ -171,6 +172,7 @@ issues known issues that are not presently on the roadmap:
171172To use XML style namespaces you have to configure well the main ` HTML5 ` instance.
172173
173174``` php
175+ use Masterminds\HTML5;
174176$html = new HTML5(array(
175177 "xmlNamespaces" => true
176178));
@@ -185,6 +187,7 @@ You can also add some default prefixes that will not require the namespace decla
185187but it's elements will be namespaced.
186188
187189``` php
190+ use Masterminds\HTML5;
188191$html = new HTML5(array(
189192 "implicitNamespaces"=>array(
190193 "t"=>"http://www.example.com"
0 commit comments