[Bug 17657] Empty arrays shouldn't be valid KeyPaths

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17657

--- Comment #6 from Jonas Sicking <jonas@sicking.cc> 2012-07-06 22:44:06 UTC ---
Indeed, I think SyntaxError is a better exception. That way we throw
SyntaxError for all sorts of malformed KeyPaths. I.e. all of

"ab c"
"foo.bar."
"x[0]"
[]

would throw SyntaxError exceptions.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 6 July 2012 22:44:08 UTC