New issue 44 by corne...@acorns.com.au: Support ID selectors with ":" in
the middle
http://code.google.com/p/fizzler/issues/detail?id=44
Hi,
On one of the Apple sites I have the following span I try to select:
<span id="theForm:slsERRtable">
There seems to be no way to do it using Fizzler.
The Id is valid (http://www.w3schools.com/tags/att_standard_id.asp)
I've tried the followings:
- span#theForm:slsERRtable : System.FormatException: Unknown
pseudo-class 'slsERRtable'.
- span#theForm\:slsERRtable : System.FormatException: Invalid character at
position 13.
(http://stackoverflow.com/questions/122238/handling-a-colon-in-an-element-id-in-a-css-selector)
- span#theForm:\3AslsERRtable ul li : System.FormatException: Invalid
character at position 14.
Thanks,
Corneliu.
I've attached a patch. There are 3 broken unit tests but they are broken
because I've changed the sample html file not the code.
I don't understand the selectors well enough to make sure that fixing the
unit test does not make it a broken unit test.
Attachments:
IdWithColonSelector.patch 4.6 KB