Sandboxing JavaScript output?
Is it possible to sandbox JavaScript output? What I mean is that whenever a developer is doing document.write, X.appendChild(), 开发者_开发问答x.replaceChild(), x.innerHTML, etc. he would not be able to directly affect the DOM -- and instead the update would have to go through my framework.
See:
- Cross browser javascript sandbox
- JavaScript Sandbox
精彩评论