quailjs / quail

Accessibility testing in the browser and on the server.

Home Page:http://quailjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4.1.1 ID tests fail with "." in ID's

opened this issue · comments

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.

Whoops, wrong account. This above was me :)

arg, good point :/

grumble grumble HTML ID spec...