Re:Douglas Crockford on JavaScript and HTML5
by pornel on Monday September 27, 2010 @09:59AM
(#1731681)
Not having his pet feature in the way he likes is not same as ignoring security (and he repeats few times that HTML5 prioritised other stuff over security, keeps making things worse, etc. which is not true).
<iframe seamless sandbox="allow-scripts"> allows embedding of untrusted scripts. JS won't be able to escape the frame, but will be able to display result within the frame or send you result via postMessage().
He mentions Caja (http://code.google.com/p/google-caja/) which is an attempt to provide such a security model.
I guess this is a serious issue for the big ad-driven sites like Yahoo and Google. He is frustrated that the other parties involved in standardization (primarily browser vendors) does not prioritize this issue. I do agree that it is disingenuous to state that security was ignored.