Skip to content

th:if fails to parse equality against a literal string #47

@abousta

Description

@abousta

Hello

Can't parse th:if="${value=='a string'}"

Steps to reproduce :

  • Go to test/standard/processors/IfAttributeProcessor.js and run the test named "Renders the element and children if the expression is truthy"
    --> Success
  • Change let expression = '${value}' into let expression = '${value==\'str\'}'
  • Few lines below, in the test data, change value: true into value: 'str'
  • Run the test
    --> Error: Failed to parse "${value=='str'}"

Regards

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions