Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All caps tag names #37

Closed
olnoeve opened this issue Sep 20, 2011 · 3 comments
Closed

All caps tag names #37

olnoeve opened this issue Sep 20, 2011 · 3 comments

Comments

@olnoeve
Copy link

olnoeve commented Sep 20, 2011

When using the loose mode parser with trim set to true, the resulting tag names come back all capitalized. using the lowercasetags: true option, the tag names correctly get turned to lowercase. Are the tags converted to uppercase by default or is there something that I am setting that I am not aware of?

thanks

@isaacs
Copy link
Owner

isaacs commented Sep 20, 2011

In non-strict mode (like HTML), tags are not case-sensitive, yes. They converted to upper case by default.

@Domvel
Copy link

Domvel commented Feb 28, 2019

Over 7 years later: Why not just keep the case-sensitive? Or split is as separate optional parameter? Non-strict mode is just for non-valid-xml. Nobody expecting the case insensitive tag names in this parameter. ...

@bladeSk
Copy link

bladeSk commented Aug 27, 2021

Just use this package instead https://www.npmjs.com/package/fast-xml-parser

It's faster and doesn't insist on doing unexpected crap for no good reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants