blob: 952629d0c89cb891c220900ad78b8558585f9f53 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001define( function() {
2
3"use strict";
4
5return function( n, elem ) {
6 var matched = [];
7
8 for ( ; n; n = n.nextSibling ) {
9 if ( n.nodeType === 1 && n !== elem ) {
10 matched.push( n );
11 }
12 }
13
14 return matched;
15};
16
17} );