Skip to content

Dynamic xinclude duplicates question mark ('?') in href url. #84

@h6w

Description

@h6w

If I'm appending some xml with an xinclude in it, ample appears to duplicate the question mark in the url.

e.g.:
js snippet:
var newNode = ample.importNode(resultXML.documentElement,true);
ample.query("#main").append(newNode);

resultXML snippet:
<xi:include href="?type=xul&object=home&part=messages" />

If I run the above code, I get this message in my log:
XHR finished loading: "http://localhost/??type=xul&object=home&part=messages".

This means that the 'type' variable passed becomes the '?type' variable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions