You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benefit of making Range an EventTarget and firing the event on the Range object directly is that the HighlightRangePointerEvent would not need to maintain a special Range pointer internally - the hit range can be obtained via the event's target property.
On the other hand, unless we define a new event path from Range objects to their containing HighlightRangeGroups, web developers would need to create one event listener per Range in order to listen for the event on an entire group. If the event is fired on the HighlightRangeGroup instead, developers can just create a single listener on the group, which seems more convenient.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
The benefit of making Range an EventTarget and firing the event on the Range object directly is that the HighlightRangePointerEvent would not need to maintain a special Range pointer internally - the hit range can be obtained via the event's
target
property.On the other hand, unless we define a new event path from Range objects to their containing HighlightRangeGroups, web developers would need to create one event listener per Range in order to listen for the event on an entire group. If the event is fired on the HighlightRangeGroup instead, developers can just create a single listener on the group, which seems more convenient.
The text was updated successfully, but these errors were encountered: