Rating titles with whitespace results in broken ID attributes #5451
Labels
bug report
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is not valid
Gate 1 Failed. Automatic verification of issue format is failed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
The review form uses the rating labels to output element attributes in the FE form.phtml template. These attribute values include IDs that should not include whitespace - this whitespace should be stripped out (likely with
str_replace
) for all (but one) instances of:The only instance that should not have whitespace is the FE-visible label, the second instance on L30:
Steps to reproduce
This issue is present in 2.0.6, 2.0.7, and 2.1 (and likely earlier versions).
test with space
. Make it visible on all stores, enable it. Save.Desired result
L30, with the first rating label whitespace replaced with non-whitespace characters:
Actual result
L30, as-is:
This produces an element with multiple IDs. While this is valid markup, the likelihood of unintentionally having multiple elements with the same ID (invalid markup) is fairly high.
Note
Earlier versions may require the patch that is mentioned in this issue to make ratings visible to stores: #4455
The text was updated successfully, but these errors were encountered: