Ticket #6497 (closed enhancement: worksforme)
.first() and .last() methods do not work if .children() returns only 1 child node.
|Reported by:||tubalmartin||Owned by:|
|Keywords:||children, first, last||Cc:||web@…|
If the method .children() returns just one child node .first() and .last() methods will not return the only child node its parent node has, instead they both will throw an error.
IMHO if just one child node is returned by .children(), both methods should return the only child node its parent has.
Excellent work by the way guys, jQuery rocks!!!