Status: New
Owner: [email protected]
CC: metaweta
Labels: Type-Defect Priority-Medium jQuery

New issue 1264 by [email protected]: window.frames not implemented -- at least not correctly
http://code.google.com/p/google-caja/issues/detail?id=1264

What steps will reproduce the problem?

<script type="text/javascript">
  if(!window.hasOwnProperty('frames')) {
    alert('window.frames not defined');
    alert(Object.prototype.toString.call(window.frames));
  } else {
    alert('window.frames is defined');
    alert(window.frames.length);
  }​​
</script>
​

What is the expected output? What do you see instead?

window.frames is supposed to be defined, and the number of frames on the page should be shown. Instead, frames is not a property of window, but apparently window is inheriting the frames property from its prototype.


Reply via email to