Skip to content

Commit

Permalink
Events guideline: Single entry for event and onXXX event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 committed Nov 18, 2021
1 parent 792e1e8 commit b3cfd16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/data-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ For example, the feature for a `focus` event targeting the `Element` interface w
}
```

This rule applies to the event features themselves, not the features for the event handlers. For example, `focus_event` and `onfocus` are two separate features.
The event handler `onfocus` is included in the `focus_event` entry. If an implementation doesn't support the event handler property, use `partial_implementation`.
If a specification has two sections (the event handler property and the event name), add both specification links.

This practice emerged through several discussions:

Expand Down

0 comments on commit b3cfd16

Please sign in to comment.