ideaovation / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

Parsing of CSS selector with quote is incorrect #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code:
document.querySelectorAll('*[title="One\'s title"]')

Error reported by Base2 (1.0 beta):
SyntaxError: '*[title="One's title"]' is not a valid CSS selector.

Test case:
http://svn.berlios.de/svnroot/repos/wforms/branches/3.0/sandbox/base2-selector.h
tml

I think it used to work after issue #8 was fixed.

Original issue reported on code.google.com by cedric.s...@gmail.com on 23 Dec 2007 at 11:04

GoogleCodeExporter commented 9 years ago
This was tricky. XPath does not allow escaping string characters so I had to 
convert
it to a horrible call to concat(). Fixed in trunk.

Original comment by dean.edw...@gmail.com on 26 Dec 2007 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 26 Dec 2007 at 7:15

GoogleCodeExporter commented 9 years ago
Fixed in 1.0 beta 2.

Original comment by dean.edw...@gmail.com on 6 Jan 2008 at 9:36