forked from webcomponents/gold-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Local Effects
Jan Miksovsky edited this page May 21, 2015
·
3 revisions
Checklist » [DOM Presence](Home#DOM Presence)
Does the component limit its effects to itself (or a designated target element)?
[This article is a stub, and is not yet complete.]
Unless the explicit purpose of the component is to provide global effects — e.g., global keyboard handling — the component should avoid intentionally changing anything outside itself and its own children.
By default, does the component only respond to keys when it has the keyboard focus?
Unless a component’s main purpose is to add global keyboard shortcuts, by default, a component shouldn’t automatically handle keys pressed while other elements have focus.