Are all elements added when the page loads or partially in response to user input? (click, etc.)
- , Firebug "Break On Next" "Script". BON, , Firebug 1.10.0a8, ALT-CTRL-B ( , ). , JS .., .
- , , ( - , !), appendChild, insertBefore, replaceChild. HTML,, "" .
, Firefox - . Opera, , Chrome .
, , node . ,
console.log , . , , , console.log.
:
<!doctype html>
<html>
<head>
<script type="text/javascript">
Node.prototype._appendChild = Node.prototype.appendChild;
Node.prototype.appendChild = function(child) {
console.log("appending " + child + " to " + this);
return this._appendChild(child);
}
document._createElement = document.createElement;
document.createElement = function(tagName){
console.log("creating " + tagName);
return this._createElement(tagName);
}
</script>
</head>
<body>
<script type="text/javascript">
var p = document.createElement("p");
p.appendChild( document.createTextNode("abc"));
document.body.appendChild(p);
</script>
</body>
</html>
Opera:
creating p appendChild.html:14
appending [object Text] to [object HTMLParagraphElement] appendChild.html:7
appending [object HTMLParagraphElement] to [object HTMLBodyElement] appendChild.html:7
Firefox ( appendChild), : HTML
<script>
Node.prototype._appendChild = function(child) {
console.log("appending " + child + " to " + this);
return this.appendChild(child)
};
</script>
- Fiddler, ( WMV, 9,9 ), .appendChild ._appendChild ( Notepad ++ "find replace " ). , . , , Fiddler, , . " " ( ) . ( , Fiddler, ; BTW "Generate file" , 200, CTRL-F5, ).
