This reverts commit afc7faabda. This isn't actually needed as we can't use document.getElementById() directly without serializing anyways.
afc7faabda