[whatwg] iframe sandbox attribute
    Ian Hickson 
    ian at hixie.ch
       
    Mon Mar 26 15:14:40 PDT 2012
    
    
  
On Mon, 26 Mar 2012, Ian Melven wrote:
> 
> While working on implementing HTML5's iframe sandbox, I realized that in 
> script, one can't tell the difference between these two cases : <iframe> 
> and <iframe sandbox = ''>.
>
> In both cases, iframe.sandbox will be '' (the empty string). This is 
> true in Webkit and IE10's implementations, as far as my testing can tell 
> (and in my work-in-progress implementation for Firefox also).
Just use iframe.hasAttribute('sandbox').
The same applies to a lot of attributes in HTML, the situation is not 
unique to the sandbox="" attribute. I don't think we need to change it to 
address this issue, since there is already an API for it.
HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
    
    
More information about the whatwg
mailing list