@@ -10,6 +10,7 @@ But after some initial refactoring work, we began a new parser.
10
10
- Event-based (SAX-like) parser
11
11
- DOM tree builder
12
12
- 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
13
14
14
15
[ ![ 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 )
15
16
@@ -22,12 +23,12 @@ To install, add `masterminds/html5` to your `composer.json` file:
22
23
```
23
24
{
24
25
"require" : {
25
- "masterminds/html5": "1 .*"
26
+ "masterminds/html5": "2 .*"
26
27
},
27
28
}
28
29
```
29
30
30
- (You may substitute ` 1 .*` for a more specific release tag, of
31
+ (You may substitute ` 2 .*` for a more specific release tag, of
31
32
course.)
32
33
33
34
From there, use the ` composer install ` or ` composer update ` commands to
@@ -118,7 +119,7 @@ different rule sets to be used.
118
119
- The ` Traverser ` , which is a special-purpose tree walker. It visits
119
120
each node node in the tree and uses the ` OutputRules ` to transform the node
120
121
into a string.
121
- - ` \ HTML5` manages the ` Traverser ` and stores the resultant data
122
+ - ` HTML5 ` manages the ` Traverser ` and stores the resultant data
122
123
in the correct place.
123
124
124
125
The serializer (` save() ` , ` saveHTML() ` ) follows the
@@ -171,6 +172,7 @@ issues known issues that are not presently on the roadmap:
171
172
To use XML style namespaces you have to configure well the main ` HTML5 ` instance.
172
173
173
174
``` php
175
+ use Masterminds\HTML5;
174
176
$html = new HTML5(array(
175
177
"xmlNamespaces" => true
176
178
));
@@ -185,6 +187,7 @@ You can also add some default prefixes that will not require the namespace decla
185
187
but it's elements will be namespaced.
186
188
187
189
``` php
190
+ use Masterminds\HTML5;
188
191
$html = new HTML5(array(
189
192
"implicitNamespaces"=>array(
190
193
"t"=>"http://www.example.com"
0 commit comments