Comments (17)
"DOM Level 3 Events" was the old name for the "UIEvents" spec - it was renamed to avoid confusion like this.
References to "DOM Level 3 Events" should be updated to point to UI Events. In any case, the input event spec was not built upon the DOM spec linked above.
from input-events.
Hey @garykac. I suspected that, so I already updated it that way yesterday. Are there other parts in the spec that need to be changed?
from input-events.
Without DOM Standard there is no event dispatch or composed events so you need both (if you need UI Events).
from input-events.
@annevk: What are you proposing? What should the exact wording be? (as a diff from what it currently is)
from input-events.
@annevk: Given that the UI Events spec extends parts of DOM4 [1], wouldn't this spec automatically inherit all that is needed? Do we need to additionally specify that also in this spec?
[1] https://www.w3.org/TR/dom/
from input-events.
DOM4
Please don't reference that spec - it's non-normative and obsolete. Please only reference: http://dom.spec.whatwg.org/
from input-events.
Given that the reference to DOM4 is in the UI Events spec and not here, should we maybe move this bug report to the UI Events spec instead? :)
from input-events.
@johanneswilm you don't really import all definitions like that. If you need to use "dispatch" somewhere, you would reference the DOM Standard directly and not some other specification that happens to reference the DOM Standard.
from input-events.
@annevk Just like I reference the DataTransfer Interface in the particular place where it is needed, right? But the main spec this builds upon and that is the UI Events spec. Or should I list all specs that are referenced to in the abstract?
from input-events.
Just where you use them. Ideally an "Abstract" doesn't have any references or links and stands on its own.
from input-events.
@annevk How about I link "dispatch" link to the UI Events glossary definition of that term? I don't think the word "composed" shows up anywhere, does it?
I guess the reason there has been a link in the abstract is that this spec has been so tightly connected to the UI Events spec that it really just looks like an extension of it. Also, some things have first been moved from UI Events here and recently back again. That's why there could still be some things left here that really also are in the UI Events spec and that really don't need to be in two places.
from input-events.
UI Events shouldn't contain a glossary definition for "dispatch". It's not a term it gets to define.
from input-events.
Ok, I see the word "dispatch" shows up only in those lines that also are in the UI Events spec. So likely we should figure out whether these lines should be here or in UI events first. It would seem to make very little sense to have a different version of these lines here than in UI Events.
Btw, I am nots sure that the division between the "UI Events" spec and the "Input Events" spec as we currently have is the best possible division. But this is what most seemed to agree on about half a year ago, so we should probably stick with this for now.
from input-events.
Given that it seems most of the dispatching and behavior and initializing seems to belong in UI Events per your comments here and elsewhere, I agree that you likely made the wrong choice half a year ago and should reconsider.
from input-events.
Before that we had the event definitions entirely in the "Input Events" spec and the "UI Events" spec just had links to the beforeinput/input events in its list of order of events. That would made it somewhat clearer where what should go, but it also meant that one needed to consult the "Input Events" spec to see the event definition for these two events. So there are advantages to both approaches. There seems to have been consensus about the change among the browser vendor representatives present, and the arguments are probably still the same, so changing this again now may just open more controversies again.
But we definitely need to figure out what to do about this. We shouldn't have the same text in two specifications, nor should this spec modify the conditions under which the event is triggered if it's already defined in the UI Events spec. And most of the bugs currently open here seem to be related to things that really are defined in the UI Events spec.
from input-events.
If they are really defined there, you getting issue reports about them implies you have normative statements that duplicate UI Events and/or the relationship is not explained well.
from input-events.
@annevk Could you write a new ticket for that? This doesn't seem to be much connected with the original intent of the bug.
from input-events.
Related Issues (20)
- Define "affected ranges" clearer at `InputEvent.getTargetRanges()` definition HOT 13
- Define result of `getTargetRanges()` of `input`
- Define what should return `getTargetRanges()` of `beforeinput` after propagation
- Make "Input Events Level 1" declare "beforeinput cancelable" of "insertCompositionText" as "Undefined" HOT 27
- [feature request] Standardize long press touch event HOT 1
- InputType to insert image from software keyboard HOT 9
- Encourage browsers to include files in `beforeinput` DataTransfer event HOT 2
- Request: a way to get and react to target ranges for all changes HOT 6
- Add spec-prod GitHub Actions HOT 4
- Bug on Android Web. Input Value duplicates when typing too fast between input fields.
- Use new `[=xref=]` syntax for DND terms HOT 1
- Move to Jitsi for meetings? HOT 1
- inputType not specified for the input type="number" 'step up/down' event
- Gather informations on content replaced by insertReplacementText or trigger a deleteByReplacement event?
- Should the last beforeinput to occur before compositionend be cancellable? HOT 11
- Order and cancelation behavior of events in composition disagrees with UI Events
- InputEvent fired twice when inserted emoji HOT 5
- What is the intended/recommended approach to hijack composition events? HOT 2
- inputType on safari mobile is undefined HOT 2
- Proposal: better encapsulation of composition events HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from input-events.