3 ms·
That's used as a constant for eventPhase https://dom.spec.whatwg.org/#ref-for-dom-event-none%E2%91%A2 https://dom.spec.whatwg.org/#ref-for-dom-event-none%E2%91%
by jaffathecake 2y ago
That's used as a constant for eventPhase https://dom.spec.whatwg.org/#ref-for-dom-event-none%E2%91%A2 https://dom.spec.whatwg.org/#ref-for-dom-event-none%E2%91%A2
In modern DOM APIs, it would be a string enum.
- afiori 2y agoI did not mean to disparage the DOM API, I intended to show that the DOM API was not (initially) designed as a Javascript API and was instead expressed in a language independent (but Java inspired) IDL. I would not surprise me if modern addition or revisions to the spec were more JS inspired