|
|
|
|
|
by fragmede
4066 days ago
|
|
It's a bit messy, but: js.eval('var div = document.createElement("div"); div.style.width = "100px"; div.style.height = "100px"; div.style.background = "red"; div.style.color = "white"; div.innerHTML = "Hello"; document.body.appendChild(div);');
manages to append a div.-- Directly modifying document.body.innerHTML in any way seems to hang it. Both: js.eval('document.body.innerHTML += "<div></div>";');
js.globals.document.body.innerHTML += "<div></div>"
Cause it to hang, though the javascript console shows it was added (or using an img tag instead).(ChromeOS v43 beta) |
|