src/parseDom.js
function filterAttributes (name, attributes) {
  const filtered = {}

  if (attributes.href) {
    filtered.href = attributes.href
  }

  return filtered
}
function filterAttributes (name, attributes) {
  const filtered = {}

  if (attributes.href) {
    filtered.href = attributes.href
  }

  return filtered
}
function filterAttributes ( name , attributes ) { const filtered = { } if ( attributes . href ) { filtered . href = attributes . href } return filtered }
Filter the html attributes Return only the relevant ones
Filter the html attributes Return only the relevant ones