Skip to content

Option lowerCaseTagName: false is not respected when generating output HTML using either .toString() or .outerHTML #293

@jscarano

Description

@jscarano

If I use the following parse command:

        const htmlDoc = parse('<div><linkHtml href="https://nowhere.com">testing</linkHtml></div>', {
            lowerCaseTagName: false
        });

And then I use the following to get the HTML string back out:

const html = htmlDoc.toString();

the HTML string looks like the following:

testing

toString should either respect the option in the parse method, or a boolean parameter should be added to the toString() method.

e.g. const html = htmlDoc.toString(false);

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