{
Attr attr = (Attr)mutEvent.getRelatedNode();
Element elem = (Element)mutEvent.getTarget();
String code = null;
JSRenderAttributeImpl render = JSRenderAttributeImpl.getJSRenderAttribute(attr,elem,clientDoc);
int changeType = mutEvent.getAttrChange();
switch(changeType)
{
case MutationEvent.ADDITION:
case MutationEvent.MODIFICATION:
code = render.setAttributeCode(attr,elem,false,clientDoc);
break;
case MutationEvent.REMOVAL:
code = render.removeAttributeCode(attr,elem,clientDoc);
break;
// No hay m�s casos
}
clientDoc.addCodeToSend(code);
}
else if (type.equals("DOMCharacterDataModified"))
{
CharacterData charDataNode = (CharacterData)mutEvent.getTarget();
JSRenderCharacterDataImpl render = (JSRenderCharacterDataImpl)JSRenderNodeImpl.getJSRenderNode(charDataNode,clientDoc);
String code = render.getCharacterDataModifiedCode(charDataNode,clientDoc);
clientDoc.addCodeToSend(code);
}
}