- Issue created by @abenguyen
In the current implementation in 2.0.x, generating IDs for facet items can lead to conflicts due to case-sensitive edge cases. This results in invalid markup since IDs must be unique within an HTML document. Consequently, this leads to rendering issues and unexpected behavior in the frontend.
Here are some examples:
The root cause of the problem is the use of Html::getClass(), which converts all values to lowercase. This transformation leads to conflicts when incorporating $result->getRawValue(), resulting in non-unique IDs.
Add a unique identifier, such as a hash, at the end of the ID generation to ensure uniqueness in the markup.
I will include a patch here as a suggestion.
Review Patch
N/A
N/A
N/a
Needs review
2.0
Code