Browse Source

More comparison data

split-manual
J. King 3 years ago
parent
commit
a0025e572d
  1. 8
      README.md

8
README.md

@ -23,6 +23,7 @@ This library and [masterminds/html5](https://packagist.org/packages/masterminds/
| | Masterminds | MensBeam |
|-----------------------------------------------------|---------------------------------------|----------------------------------------|
| Minimum PHP version | 5.3 | 7.1 |
| Extensions required | dom, ctype, mbstring or iconv | dom |
| Supported encodings | System-dependent | [Per specification](https://html.spec.whatwg.org/multipage/parsing.html#character-encodings) |
| Encoding detection | None | Byte order mark, HTTP header, [pre-scan](https://html.spec.whatwg.org/multipage/parsing.html#prescan-a-byte-stream-to-determine-its-encoding) |
@ -34,5 +35,10 @@ This library and [masterminds/html5](https://packagist.org/packages/masterminds/
| Handling of data between table cells | Left as-is | [Per specification](https://html.spec.whatwg.org/multipage/parsing.html#an-introduction-to-error-handling-and-strange-cases-in-the-parser) |
| Handling of omitted start tags | Elements are not inserted | Per specification |
| Handling of processing instructions | Processing instructions are retained | Per specification |
| Time needed to parse single-page HTML specification | 2.8 seconds | 7.0 seconds |
| Namespace for HTML elements | Per specification, configurable | Null |
| Time needed to parse single-page HTML specification | 2.8 seconds† | 7.0 seconds†† |
| Peak memory needed for same | 38 MB | 13.9 MB |
† With HTML namespace disabled. With HTML namespace enabled it does not finish in a reasonable time due to a PHP bug.
†† With parse errors suppressed. Reporting parse errors adds approximately 10% overhead

Loading…
Cancel
Save