Closed
Description
Expected Behavior
textarea attribute name: "defaultValue" should stay upper case, but instead, become lower case chars: "defaultvalue".
i do use htmlparser2 option key to define related options to get this to work, but it still failed.
Actual Behavior
defaultValue become defaultvalue (lower case char "v") even with htmlparser2 options setup (see below).
Steps to Reproduce
use a html template with node elements with attributes name contain upper case chars, parse them, use htmlparse2 option to try to remove lowerCaseAttributeNames, and look at the result... still lower case attribute names.
Reproducible Demo
textarea(type='text' id='message' name='message'
rows="4" cols="50" defaultValue="")
(pug template fetched to a react client, then console.log show the template rendered text has still upper case chars attribute names)
parse(this.state.content,
{ htmlparser2: {
xmlMode: true,
lowerCaseAttributeNames: false,
lowerCaseTags: false
}
} )
Environment
- Version:
0.13.0 - Platform:
archlinux - Browser:
firefox-78.0.2
Metadata
Metadata
Assignees
Labels
No labels