开发者

Sandboxing JavaScript output?

开发者 https://www.devze.com 2023-01-09 21:36 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消