You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm trying to make my websites more... differentiated in the code, so that no HTML file has PHP attached to it, and PHP files only have snippets. The way I'm setting it up right now is that I want to be able to add stylesheets to the <head> section, but when I try to use append() on an html5qp object, I get the error:
Fatal error: Uncaught exception 'QueryPath\ParseException' with message 'DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Premature end of data in tag link line 1
Now, obviously, it's trying to parse a <link></link> pair, but stylesheet links don't have closing tags. Again, I'm using this on an html5qp object, so it shouldn't be trying to parse the XML tag variant, yet it still is.
The text was updated successfully, but these errors were encountered:
As a followup, I finally managed to figure out how to get Composer working on my IDE, so I used the Composer install of QP and it solved pretty much all my other problems with the library, but this still occurs on html5qp objects.
So I'm trying to make my websites more... differentiated in the code, so that no HTML file has PHP attached to it, and PHP files only have snippets. The way I'm setting it up right now is that I want to be able to add stylesheets to the
<head>
section, but when I try to use append() on an html5qp object, I get the error:Fatal error: Uncaught exception 'QueryPath\ParseException' with message 'DOMDocumentFragment::appendXML(): Entity: line 1: parser error : Premature end of data in tag link line 1
Now, obviously, it's trying to parse a
<link></link>
pair, but stylesheet links don't have closing tags. Again, I'm using this on an html5qp object, so it shouldn't be trying to parse the XML tag variant, yet it still is.The text was updated successfully, but these errors were encountered: