// performance concern (which I doubt it will) it can be optimized
// later.
DOMAttributes old = (DOMAttributes) getNamedValues();
Enumeration en = old.propertyNames();
while(en.hasMoreElements()) {
String name = (String) en.nextElement();
removeAttribute(name);
}