html5-php
html5-php copied to clipboard
An HTML5 parser and serializer for PHP.
I don't see anything in the code that would require libxml extension. We only need DOM. Do I miss something?
# Changed log - The PHPUnit fixture `setUp` method is `protected`, not `public`. - Removing additional white spaces. - Using the `assertTrue` and `assertFalse` to assert expected value is `true`...
Hello, Sometimes i get strange error: ``` PHP Warning: DOMElement::setIdAttribute(): ID loading already defined in /home/xxx/domains/xxx/public_html/xxx/core/framework/Masterminds/HTML5/Parser/DOMTreeBuilder.php on line 392 PHP Stack trace: PHP 1. {main}() /home/xxx/domains/xxx/public_html/index.php:0 PHP 2. Core\xxx->loadPage() /home/xxx/domains/xxx/public_html/index.php:147...
In a few places there is a debug mode that prints to standard out. We can expose this in the Html5 and use the PSR logger interface (still printing to...
When loading a XHTML document with JavaScript into html5-php I expect the `// // ``` Actual: ``` //<![CDATA[ for ( var i = 0; i < 10; i++ ) {...
In TEXT_RCDATA fields like `` it is not possible to use processing instructions. Could this be the sole exception for RCDATA fields or is this against the spec?
According to the spec, li can contain any "flow content", i.e. practically anything. Why is it not categorized as a BLOCK_TAG?
https://wiki.php.net/rfc/domdocument_html5_parser Just bringing this to your attention.