Skip to content

The props of custom components are changed to lowercase #8

@withparadox2

Description

@withparadox2

Child component can not receive expected props passed from parent because they are converted to lower case.

I read the code and find the case of tag is under consideration while attribute's is not, it seems necessary to add another option lowerCaseAttributeNames: false for parser.

function parseDOM(source) {
  return htmlparser.parseDOM(source, {recognizeSelfClosing: true, lowerCaseTags: 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