link-hijacker icon indicating copy to clipboard operation
link-hijacker copied to clipboard

iframe friendliness

Open davidtheclark opened this issue 8 years ago • 0 comments

A recent PR to the tabbable library reminded me that you need to take special measures to make stuff like this work within iframes.

  • Get document by getting an element's ownerDocument.
  • Get window by getting a window's defaultView.

Maybe I should get into the habit of always writing browser JS this way ...

davidtheclark avatar Sep 08 '17 19:09 davidtheclark