Bug 1090874 - Avoid always re-creating the node when editing a tagname in the markup-view; r=pbrosset

This commit is contained in:
Tim P.
2014-12-04 16:34:47 -08:00
parent 79d6525953
commit e6a996537e
3 changed files with 38 additions and 1 deletions

View File

@@ -2317,7 +2317,7 @@ ElementEditor.prototype = {
* Called when the tag name editor has is done editing.
*/
onTagEdit: function(newTagName, isCommit) {
if (!isCommit || newTagName == this.node.tagName ||
if (!isCommit || newTagName.toLowerCase() === this.node.tagName.toLowerCase() ||
!("editTagName" in this.markup.walker)) {
return;
}