Permalink
Browse files

The next selected target can be only HTMLElement, releated to issue 5506

  • Loading branch information...
1 parent e3aec76 commit 9f8b93ab240a68870453406946eadb4c5c1c58e5 @janodvarko janodvarko committed May 31, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 extension/content/firebug/html/htmlPanel.js
@@ -688,8 +688,9 @@ Firebug.HTMLPanel.prototype = Obj.extend(WalkingPanel,
{
// If the editing mode is currently active, remembe the target mutation.
// The mutation is coming from user changes and will be selected as soon
- // as the editing mode is finished.
- if (this.isEditing())
+ // as the editing mode is finished. Only HTMLElement can be selected
+ // (not a simple text node)
+ if (this.isEditing() && (target instanceof window.HTMLElement))
this.nextSelection = target;
}

0 comments on commit 9f8b93a

Please sign in to comment.