Open technosophos opened 11 years ago
Hello! So, there is no way to insert a node with empty attribute? For example, I got error trying to replace node with iframe with allowfullscreen attribute without value (embed code for yotube):
$node->replaceWith($iframeHtml);
DOMDocumentFragment::appendXML(): Entity: line 6: parser error : Specification mandate value for attribute allowfullscreen
P.S. : Using html5qp().
This looks like a big with HTML5-PHP. It is not allowing an empty attribute value for that attribute.
On Sat, Jan 23, 2016, 11:32 AM Sergei notifications@github.com wrote:
Hello! So, there is no way to insert a node with empty attribute? For example, I got error trying to replace node with iframe with allowfullscreen attribute without value (embed code for yotube):
$node->replaceWith($iframeHtml);
DOMDocumentFragment::appendXML(): Entity: line 6: parser error : Specification mandate value for attribute allowfullscreen
P.S. : Using html5qp().
— Reply to this email directly or view it on GitHub https://github.com/technosophos/querypath/issues/114#issuecomment-174210748 .
The following functions need to be updated for HTML5 parsing and serializing.
And need to add...