Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PyPy.js: A fast, compliant Python implementation for the web. Parent comment
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);');
--
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>"
(ChromeOS v43 beta)
import js jq = js.eval("$") first_line = jq(jq(".container p")[0]) first_line.text("jQuery was here")
--
Directly modifying document.body.innerHTML in any way seems to hang it. Both:
Cause it to hang, though the javascript console shows it was added (or using an img tag instead).(ChromeOS v43 beta)