Re: [w3c/clipboard-apis] Link to the HTML spec's "has focus steps". (#143)

The other steps handle iframe nesting cases. If you call `document.hasFocus()` inside an iframe, then this is true if:

- The iframe itself has focus within its parent (times N if it's multiply nested)
- The top-level BC has system focus

In non-iframe cases, target's BC = target's BC's TLBC, so candidate = target so the loop quits immediately.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/143#issuecomment-845527748

Received on Thursday, 20 May 2021 22:41:30 UTC