Manipulation: Support $el.html(selfRemovingScript) (#5378)
[jquery.git] / src / traversing / var / siblings.js
blob3b908d7fdc7d2a2751a13cef7c437002abd11d0d
1 export function siblings( n, elem ) {
2         var matched = [];
4         for ( ; n; n = n.nextSibling ) {
5                 if ( n.nodeType === 1 && n !== elem ) {
6                         matched.push( n );
7                 }
8         }
10         return matched;