4.1.1 ID tests fail with "." in ID's
opened this issue · comments
Deleted user commented
Several tests will look for elements based on their ID, including:
- documentIDsMustBeUnique
- idRefHasCorrespondingId
- idrefsHasCorrespondingId
I'm not sure if any others do. What happens here is that the ID gets passed into a selector: $('#' + id);
This can fail when ID's contain values meaningful to CSS such as a period (.), such as an ID like id_0.123 We should make sure strings that are put into a selector are escaped.
Wilco Fiers commented
Whoops, wrong account. This above was me :)
J. Renée Beach commented
arg, good point :/
grumble grumble HTML ID spec...