Side navigation
#4042 closed bug (fixed)
Opened February 02, 2009 01:51PM UTC
Closed February 07, 2009 04:54PM UTC
.class selector not working in opera in some cases
Reported by: | ThiefMaster | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | selector | Version: | 1.3.1 |
Keywords: | opera class | Cc: | |
Blocked by: | Blocking: |
Description
If an element has two similar classes, e.g. class="bugTest bug" (notice the 2nd class being the beginning of the first class), a match on the shorter class name (.bug) won't match elements with class="bugTest bug" but will match those with class="bug bugTest".
This only happens in Opera.
Yeah, it's a bug with Opera's getElementsByClassName.
http://groups.google.com/group/sizzlejs/browse_thread/thread/78663cec35f885c9?fwc=1