Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5QP append() uses XML parsing #196

Open
Malkierian opened this issue Aug 22, 2017 · 1 comment
Open

HTML5QP append() uses XML parsing #196

Malkierian opened this issue Aug 22, 2017 · 1 comment

Comments

@Malkierian
Copy link

Malkierian commented Aug 22, 2017

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.

@Malkierian
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant