Side navigation
#787 closed bug (fixed)
Opened January 11, 2007 09:50PM UTC
Closed January 12, 2007 07:33AM UTC
Last modified June 19, 2007 08:49AM UTC
Array support in selector is broken
Reported by: | Fil | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1 |
Component: | core | Version: | 1.1a |
Keywords: | array selector | Cc: | fil@rezo.net |
Blocked by: | Blocking: |
Description
Here's a test that shouldn't be broken
test("expressions - array", function() { expect(1); t( "Array Support", ["a.blog", "div"], ["mark","simon","main","foo"] ); });
Attachments (3)
Change History (5)
Changed January 11, 2007 10:23PM UTC by comment:1
Changed January 11, 2007 10:25PM UTC by comment:2
I don't know if the array selector is going to be of type "object" on all browsers. It works on FF2/Mac and Safari though.
Please note that I included a .substring() for speed.
Changed January 11, 2007 10:38PM UTC by comment:3
Or, if the typeof test is costly, you could remove support for the array selector, the comma separated stuff is enough. But please mention it in the changelog :)
Changed January 12, 2007 07:33AM UTC by comment:4
resolution: | → fixed |
---|---|
status: | new → closed |
We're removing support for the array selector in favor of the comma separated one. I mentioned this at the end of the recent blog post and there's support for it in the compatibility plugin. I'll be sure to re-announce it when its released.
I also added in your substring improvement.
Changed January 12, 2007 09:13AM UTC by comment:5
Good. I hadn't seen it in the blog post :)
trac doesn't let me attach the patch, so here it is (ugly)