code: function filterAuxiliaryElements(items) {
    const auxiliaryTags = [
      'link',
      'script',
      'style',
      'template'
    ];
    return [].filter.call(items, function(item) {
      return !item.localName || auxiliaryTags.indexOf(item.localName) < 0;
    });
  }
docs: Return the given elements, filtering out auxiliary elements that aren't typically visible. Items which are not elements are returned as is.