nl_tokens: Look for an element that is a child of top and a parent of bottom ( or bottom ) that matches selector .
pl_tokens: function findMatch ( top , bottom , selector ) { while ( bottom != top && bottom ) { if ( matches ( bottom , selector ) ) return bottom ; bottom = bottom . parentElement ; } if ( bottom && matches ( bottom , selector ) ) return <mask> ; return null ; }