dayvonjersen / ajaxslt

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

IE6: Can't match on @href when href is "javascript:" url #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an HTML document that uses a link like this: <a
href="javascript:doFoo('a', 'b')">javascript href with spaces</a>
2. Attempt to match this expression with the xpath
//a[@href="javascript:doFoo('a', 'b')"]

What is the expected output? What do you see instead?
On FF2 & IE7, the expression matches.  On IE6, the expression fails.

This is because on IE6, the browser returns the attribute value as
javascript:doFoo('a',%20'b'), for reasons that man may never understand.

This was SEL-347; it was fixed in a hack that worked around AJAXSLT that
didn't work for more complex XPath expressions.  We should fix it in "real"
AJAXSLT as well and then get rid of the hack in Selenium.
http://jira.openqa.org/browse/SEL-347

Original issue reported on code.google.com by DanFabul...@gmail.com on 7 Nov 2007 at 3:01

GoogleCodeExporter commented 8 years ago
Fixed in revision 22

Original comment by DanFabul...@gmail.com on 7 Nov 2007 at 3:58