|
| __construct ( $text) |
|
| removeTbody () |
|
| serialize () |
| Serialize the XML DOM for comparison purposes.
|
|
| trimWhitespace () |
| The point of this function is to produce a normalized DOM in which Tidy's output matches the output of html5depurate.
|
|
◆ __construct()
ParserTestResultNormalizer::__construct |
( |
| $text | ) |
|
|
protected |
◆ normalize()
static ParserTestResultNormalizer::normalize |
( |
| $text, |
|
|
| $funcs ) |
|
static |
◆ removeTbody()
ParserTestResultNormalizer::removeTbody |
( |
| ) |
|
|
protected |
◆ serialize()
ParserTestResultNormalizer::serialize |
( |
| ) |
|
|
protected |
◆ trimWhitespace()
ParserTestResultNormalizer::trimWhitespace |
( |
| ) |
|
|
protected |
The point of this function is to produce a normalized DOM in which Tidy's output matches the output of html5depurate.
Tidy both trims and pretty-prints, so this requires fairly aggressive treatment.
In particular, note that Tidy converts
x
to
\nx\n
, which theoretically affects display since the second line break is not ignored by compliant HTML parsers.
This function also removes empty elements, as does Tidy.
Definition at line 59 of file ParserTestResultNormalizer.php.
◆ $doc
ParserTestResultNormalizer::$doc |
|
protected |
◆ $invalid
ParserTestResultNormalizer::$invalid |
|
protected |
◆ $xpath
ParserTestResultNormalizer::$xpath |
|
protected |
The documentation for this class was generated from the following file: