pombreda / base2

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

matchesSelector() fails for grouped selector (i.e. "selector1, selector2") #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Load http://virgule.info/tmp/base2_matchesSelector.html or the attached
testcase (Modify the path to the base2 javascript files inside that file if
necessary, they are currently pointing to the 1.0 version)
2. Some elements are red: only the first part of the selector seems to be
used for matching

All elements should be green. Calling
document.querySelectorAll('#something, .somethingelse') then
matchesSelector() on each item returned with the same selector should
always work.

Original issue reported on code.google.com by diox...@gmail.com on 8 Sep 2008 at 3:37

Attachments:

GoogleCodeExporter commented 9 years ago
This is now fixed in the trunk:

http://base2.googlecode.com/svn/trunk/lib/

Original comment by dean.edw...@gmail.com on 8 Sep 2008 at 3:53

GoogleCodeExporter commented 9 years ago
That testcase now works... but I found something else. 
See http://www.virgule.info/tmp/base2_matchesSelector-b.html

Using '.result, #body p' (and setting the relevant id on <body>) makes it fail, 
it
only matches the first <p> instead of matching all 3 elements.

(Both testcase now point to the current trunk to be easier to test)

Original comment by diox...@gmail.com on 8 Sep 2008 at 5:22

Attachments:

GoogleCodeExporter commented 9 years ago
This is still a problem with latest trunk (see 2nd testcase URL)

Original comment by diox...@gmail.com on 9 Jun 2009 at 5:25