Purpose of Transcrypt is to be able to use Python in the JavaScript world. The call document.getElementById doesn&#x27;t have meaning outside a browser. For non-gui debugging purposes module org.transcrypt.stubs.browser is present supporting the bare minimum. Of course someone could write a library supporting all kinds of DOM functions. But I don&#x27;t think it would be very useful. The idea is to be able to do the whole web &quot;chain&quot; in Python. So CPython + a framework on the server, Transcrypt in the Browser (or, generally, JS client).