Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

htmlAppend appends in reverse order? #22

@zgoda

Description

@zgoda

That seems bit strange to me and I do not understand fully what happens there (I'm a javascript noob) but the effect is quite opposite to what I expect.

var data = self.model.getAll();
var template = new t(document.getElementById("nowplaying-data-t").innerHTML);
var html = template.render({data: data});
$("#nowplaying-info").htmlAppend(html);

I have some text rendered from template that contains 2 lines of text. Trying to debug in Chrome I see the order in html is right, but the result after htmlAppend is reversed. Everything is fine if I add this text using html.

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