Skip to content

HTML5QP append() uses XML parsing #196

@Malkierian

Description

@Malkierian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions