Closed LuLaValva closed 7 months ago
As of now, extracted HTML replaces all complex attribute expressions with strings which begin with "dynamic". This is insufficient, as it produces false positives in some cases which weren't considered.
"dynamic"
<div role='option' aria-selected=isSelected && "true" />
Fix all of the following: Invalid ARIA attribute value: aria-selected="dynamic0"
<img src="..." alt=dynamic + string />
would create an error state.
true
duplicate-id-active
landmark-unique
<div id=first + dynamic /> <div id=second + dynamic />
"true"
Right now option 2 seems the most viable, but I would like to give it more thought as well.
marko@5.25.11
Details
As of now, extracted HTML replaces all complex attribute expressions with strings which begin with
"dynamic"
. This is insufficient, as it produces false positives in some cases which weren't considered.Failure Case
Constraints for Solution
would create an error state.
true
are also not an option, because then rules likeduplicate-id-active
andlandmark-unique
would break in cases like this:Possible solutions
duplicate-id-active
, and set all dynamic values to a unique string that works everywhere like"true"
"true"
will pass every ruleRight now option 2 seems the most viable, but I would like to give it more thought as well.