Bug 1090874 - Avoid always re-creating the node when editing a tagname in the markup-view; r=pbrosset
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user