w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

Fix up the focused area restrictions. #403

Closed jyasskin closed 8 months ago

jyasskin commented 4 years ago

I think this is what you meant. The old text in Mitigations, "the currently focused area document", doesn't have a meaning. The text in "mandatory conditions" was better, but isn't clear about which currently focused area to use, since every top-level browsing context has one.


Preview | Diff

rakuco commented 8 months ago

I ended up fixing this in #483: there's an algorithm that takes a Document, gets its navigable, the navigable's top-level traversable's focusable area's DOM anchor's node document (what a mouthful) and compares each one's relevant settings object's origin.