Here is my code :
document._createELement = document.createElement;
document.createElement = function(type, data){
var x = document._createElement(type);
x = data;
return x;
}
And I tried this :
document.body.appendChild(document.createElement("p", {
innerHTML: "Hi!"
}));
And I expect to see this in the HTML :
<p>Hi!</p>
What's the solution to complete the document.createElement
function above?
Hi!
`??? – Teemu Jun 26 '14 at 10:59