Modify ↓
Ticket #4042 (closed bug: fixed)
.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: | |
| Blocking: | Blocked by: |
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.
Attachments
Change History
Changed 4 years ago by ThiefMaster
-
attachment
jquery.bug.html
added
comment:1 Changed 4 years ago by dmethvin
- need changed from Review to Patch
Yeah, it's a bug with Opera's getElementsByClassName.
http://groups.google.com/group/sizzlejs/browse_thread/thread/78663cec35f885c9?fwc=1
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Testcase