moveAttribute(name, from, to, o = {}) {
      let value = from.getAttribute(name);

      if (value === null) {
        return;
      }

      let newName = o.rename || name;
      to.setAttribute(newName, value);
      from.removeAttribute(name);
    }
Get the value of an attribute, with fallback attributes in priority order.