if (!ScriptableObject.hasProperty(getPrototype(), attributeName)) {
removals.add(attributeName);
}
}
for (final String attributeName : removals) {
node.removeAttribute(attributeName);
}
// Remove custom attributes defined at runtime via JavaScript.
for (final Object id : this.getAllIds()) {
if (id instanceof Integer) {