Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Also refresh docType if HTMLHtmlElement (an iframe) is reloaded

  • Loading branch information...
commit 1b0fee45011b6fe13fcd5ff112f1604a73fb0c4d 1 parent c0a500a
@janodvarko janodvarko authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 extension/content/firebug/html/htmlPanel.js
View
11 extension/content/firebug/html/htmlPanel.js
@@ -689,6 +689,10 @@ Firebug.HTMLPanel.prototype = Obj.extend(WalkingPanel,
{
this.ioBox.removeChildBox(parentNodeBox, target);
+ // Special case for docType.
+ if (target instanceof HTMLHtmlElement)
+ this.ioBox.removeChildBox(parentNodeBox, target.parentNode.doctype);
+
this.highlightMutation(parentNodeBox, parentNodeBox, "mutated");
}
else
@@ -716,6 +720,13 @@ Firebug.HTMLPanel.prototype = Obj.extend(WalkingPanel,
this.ioBox.insertChildBoxBefore(parentNodeBox, target, nextSibling) :
this.ioBox.appendChildBox(parentNodeBox, target);
+ // Special case for docType.
+ if (target instanceof HTMLHtmlElement)
+ {
+ this.ioBox.insertChildBoxBefore(parentNodeBox,
+ target.parentNode.doctype, target);
+ }
+
this.highlightMutation(objectBox, objectBox, "mutated");
}
}

0 comments on commit 1b0fee4

Please sign in to comment.
Something went wrong with that request. Please try again.