Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

iframe friendliness #7

Open
davidtheclark opened this issue Sep 8, 2017 · 0 comments
Open

iframe friendliness #7

davidtheclark opened this issue Sep 8, 2017 · 0 comments

Comments

@davidtheclark
Copy link
Contributor

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 ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant