Richy19 / fizzler

Automatically exported from code.google.com/p/fizzler
GNU General Public License v3.0
0 stars 0 forks source link

Support ID selectors with ":" in the middle #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by corneliu...@gtempaccount.com on 28 Feb 2011 at 9:18

GoogleCodeExporter commented 9 years ago
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.

Original comment by corneliu...@gtempaccount.com on 28 Feb 2011 at 9:40

Attachments: