Skip to content

Unintended attribute behaviour with unescaped tags ? #51

@aitherios

Description

@aitherios

If I write the following code:

Gyoku.xml(tag!: '<p>text<p>', attributes!: {tag: { prop: 1}})

the output is "<tag><p>text<p></tag>", note the property may be missing in the tag

But it works with:

Gyoku.xml(tag!: '<p>text<p>', attributes!: {tag!: { prop: 1}})

output: '<tag prop="1"><p>text<p></tag>'

I would like to ask if this is the intended behaviour before submitting a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions