Unsets an attribute.

@param  String name      The attribute name to unset.
@param  Object element   A DOM element.
@param  Object previous  The previous state of attributes.
500925
function unset(name, element, previous) {
  if (unset.handlers[name]) {
    unset.handlers[name](name, element, previous);
  } else {
    element.removeAttribute(name);
  }
}
1069979
public function removeAttribute($name)
    {
        foreach ($this as $node) {
            if ($node instanceof \DOMElement) {
                /** @var \DOMElement $node */
                if ($node->hasAttribute($name)) {
                    $node->removeAttribute($name);
                }
            }
        }
        return $this;
    }
932466
public synchronized void unset(String name) {
		String[] names = null;
		if (!isDeprecated(name)) {
			names = getAlternativeNames(name);
			if(names == null) {
				names = new String[]{name};
			}
		}
		else {
			names = handleDeprecation(deprecationContext.get(), name);
		}

		for(String n: names) {
			getOverlay().remove(n);
			getProps().remove(n);
		}
	}
796304
function(element) {
		Array.forEach(this._xnew.attributes, function(newatt) {
			var oldatt = this._xold.getAttribute(newatt.name);
			if (oldatt === null || oldatt !== newatt.value) {
				this._set(element, newatt.name, newatt.value);
				this._summary.push(
					"@" + newatt.name + "=\"" + newatt.value + "\"" +
					(element.id ? ' (#' + element.id + ')' : '')
				);
			}
		}, this);
		Array.forEach(this._xold.attributes, function(oldatt) {
			if (!this._xnew.hasAttribute(oldatt.name)) {
				this._del(element, oldatt.name, null);
				this._summary.push(
					"removed @" + oldatt.name +
					(element.id ? ' (#' + element.id + ')' : '')
				);
			}
		}, this);
	}
182615
@Override
    public List<Object> removeAttribute(final String name) {
        List<Object> removedValues = null;

        for (final IAdditionalDescriptors additionalDescriptors : this.delegateDescriptors) {
            final List<Object> values = additionalDescriptors.removeAttribute(name);
            if (values != null) {
                if (removedValues == null) {
                    removedValues = new ArrayList<>(values);
                } else {
                    removedValues.addAll(values);
                }
            }
        }

        return removedValues;
    }
291886
public void unhide(Object group, String name) {
		if (isAttached()) {
			Element element = helper.getElement(group, name);
			if (element != null) {
				Dom.setStyleAttribute(element, "visibility", "inherit");
			}
		}
	}
1102441
public function offsetUnset($name)
    {
        if (is_int($name)) {
            parent::offsetUnset($name);
            // @codeCoverageIgnoreStart
            // This will never be reached, because an exception is always
            // thrown.
            return;
            // @codeCoverageIgnoreEnd
        }

        unset($this->parameters[strtoupper($name)]);
    }
135399
public Attribute removeAttribute(String name)
  {
    for (int i = _attributes.size() - 1; i >= 0; i--) {
      Attribute attr = _attributes.get(i);

      if (attr.getName().equals(name)) {
        _attributes.remove(i);
        return attr;
      }
    }

    return null;
  }
750055
public void removeAttribute(String name) {
		if(logger.isDebugEnabled()) {
        	logger.debug("removeAttribute - name=" + name);
        }
		if(attributes  != null) {
			this.attributes.remove(name);
		}
	}
1085844
public void setAttribute(String name, Object o) {
		if(logger.isDebugEnabled()) {
        	logger.debug("setAttribute - name=" + name + ", object=" + o);
        }
		if (name == null)
			throw new NullPointerException("Attribute name can not be null.");
		this.getAttributeMap().put(name, o);
	}
962020
public Object removeAttribute(Object name) {
        if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
            LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[REMOVE_ATTRIBUTE], "name= " + name);
        }
        _attributes.remove(name);
        Object oldValue = removeValueGuts((String) name);
        Boolean oldIsBindingListener = (Boolean) _attributeNames.get(name);
        _attributeNames.remove(name);
        _storeCallback.sessionAttributeRemoved(this, name, oldValue, oldIsBindingListener);
        if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
            if (!SessionManagerConfig.isHideSessionValues()) {
                LoggingUtil.SESSION_LOGGER_WAS.exiting(methodClassName, methodNames[REMOVE_ATTRIBUTE], "oldAttributeValue =  " + oldValue);
            } else {
                LoggingUtil.SESSION_LOGGER_WAS.exiting(methodClassName, methodNames[REMOVE_ATTRIBUTE]);
            }
        }
        return oldValue;
    }
587689
@Override
    public void unset(String propName) {
        if (propName.equals("level")) {
            unsetLevel();
        }
        if (propName.equals("treeView")) {
            unsetTreeView();
        }
        super.unset(propName);
    }
869778
public void delete(String name) throws IOException {
        if (name.equalsIgnoreCase(KEY_ID)) {
            id = null;
        } else if (name.equalsIgnoreCase(AUTH_NAME)) {
            names = null;
        } else if (name.equalsIgnoreCase(SERIAL_NUMBER)) {
            serialNum = null;
        } else {
          throw new IOException("Attribute name not recognized by " +
                        "CertAttrSet:AuthorityKeyIdentifier.");
        }
        encodeThis();
    }
597209
public void delete(String name) throws IOException {
        if (name.equalsIgnoreCase(VERSION)) {
            version = V1;
        } else {
            throw new IOException("Attribute name not recognized by " +
                                  "CertAttrSet: CertificateVersion.");
        }
    }
1369822
public function removeCustomHtmlAttrib($name)
        {
            if (!is_string($name)) {
                throw new Exception(
                    'Invalid argument: $name must be a string'
                );
            }

            if (isset($this->_customHtmlAttribs[$name])) {
                unset($this->_customHtmlAttribs[$name]);
            }
        }
995261
public synchronized void removeContextAttribute(String name)
    {
        Object old= super.getContextAttribute(name);
        super.removeContextAttribute(name);

        if (old != null && _contextAttributeListeners != null)
        {
            ServletContextAttributeEvent event= new ServletContextAttributeEvent(getServletContext(), name, old);
            for (int i= 0; i < LazyList.size(_contextAttributeListeners); i++)
            {
                ServletContextAttributeListener l=
                    (ServletContextAttributeListener)LazyList.get(_contextAttributeListeners, i);
                l.attributeRemoved(event);
            }
        }
    }
457264
public void remove (String name)
    {
        // we treat the old value as a String, I hope that's ok!
        String oldValue = getValue(name, (String) null);
        _prefs.remove(name);
        _propsup.firePropertyChange(name, oldValue, null);
    }