w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
147 stars 51 forks source link

Events do not have "default action"s #104

Open johanneswilm opened 8 years ago

johanneswilm commented 8 years ago

From @domenic on August 14, 2016 15:9

The concept is not defined.

Probably instead what you want to do is define an algorithm for performing certain operations. During the course of that algorithm, fire the event. Then, check if the event has been canceled. If not, perform other actions.

Copied from original issue: w3c/input-events#6

johanneswilm commented 8 years ago

@domenic The UI-Events spec defines "default action". Would you think it would be OK if I used that definition? https://w3c.github.io/uievents/#default-action

johanneswilm commented 8 years ago

From @annevk on August 15, 2016 7:50

No, that is wrong too. 😞

johanneswilm commented 8 years ago

@annevk: Could you be more specific? What is wrong about the definition in UI events that is currently used?

johanneswilm commented 8 years ago

From @annevk on August 15, 2016 7:58

It's not actually a thing that is part of the DOM event model.

johanneswilm commented 8 years ago

Ok, so it's also wrong the way it's used in the UI Events spec?

johanneswilm commented 8 years ago

From @annevk on August 15, 2016 8:3

Yes.

johanneswilm commented 8 years ago

Given that we really just expand upon events defined in UI Events, I wonder if it could be changed in UI events, and we just reference the new definition there? @garykac What do you think?