includes/clientside/tinymce/plugins/xhtmlxtras/js/element_common.js
changeset 588 20484deb89cd
parent 395 fa4c5ecb7c9a
child 778 57ce13805b6f
--- a/includes/clientside/tinymce/plugins/xhtmlxtras/js/element_common.js	Thu Jun 26 18:05:42 2008 -0400
+++ b/includes/clientside/tinymce/plugins/xhtmlxtras/js/element_common.js	Thu Jun 26 20:55:13 2008 -0400
@@ -136,7 +136,7 @@
 
 	element_name = element_name.toLowerCase();
 	var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
-	if (elm != null && elm.nodeName == element_name.toUpperCase()) {
+	if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) {
 		SXE.currentAction = "update";
 	}
 
@@ -185,7 +185,7 @@
 SXE.removeElement = function(element_name){
 	element_name = element_name.toLowerCase();
 	elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
-	if(elm && elm.nodeName == element_name.toUpperCase()){
+	if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
 		tinyMCEPopup.execCommand('mceBeginUndoLevel');
 		tinyMCE.execCommand('mceRemoveNode', false, elm);
 		SXE.inst.nodeChanged();