for (int i = 0; i < length; ++i) {
final String attrName = attrs.getLocalName(i).toLowerCase();
if (body_.getAttributes().getNamedItem(attrName) == null) {
body_.setAttribute(attrName, attrs.getValue(i));
if (attrName.startsWith("on") && body_.getScriptObject() != null) {
final HTMLBodyElement jsBody = (HTMLBodyElement) body_.getScriptObject();
jsBody.createEventHandlerFromAttribute(attrName, attrs.getValue(i));
}
}
}
}
}