nextuntil and prevuntil do not support attribute selectors

nextuntil and prevuntil do not support attribute selectors

Hi. I am trying to fetch some rows of a table. each row having a classname starting with "pysj" is a course. those rows that follow these rows, but do not them selves contain this class name, should also be considered being a part of the previous course.

In other words, I need to select all elements matching $(this).nextUntil("[class^=pysj]") and then do something with them.

This however, errors out with the following error:




 elem.getAttribute is not a function
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js
Line 3109






Please see test case here: http://bjorninge.no/jquery-nextuntill-attribute-bug.html