removeAttribute = (vTree, domNode, name) => {
  // Runtime checking if the property can be set.
  const blocklistName = 'r-' + vTree.nodeName + '-' + name;
  const anyNode = /** @type {any} */ (domNode);

  if (allowlist.has(blocklistName)) {
    anyNode[name] = undefined;
    delete anyNode[name];
  }
  else if (!blocklist.has(blocklistName)) {
    try {
      anyNode[name] = undefined;
      delete anyNode[name];
      allowlist.add(blocklistName);
    }
    catch {
      blocklist.add(blocklistName);
    }
  }

  /** @type {HTMLElement} */ (domNode).removeAttribute(name);
}
Removes an attribute from an element.

@param {VTree} vTree
@param {ValidNode} domNode
@param {string} name
@return {void}