@@ -31,15 +31,17 @@ typedef XPathNSResolver = JSFunction;
31
31
typedef ShadowRootMode = String ;
32
32
typedef SlotAssignmentMode = String ;
33
33
34
- /// The **`Event` ** interface represents an event which takes place in the DOM.
34
+ /// The **`Event` ** interface represents an event which takes place on an
35
+ /// [`EventTarget`] (https://developer.mozilla.org/en-US/docs/Web/API/EventTarget).
35
36
///
36
37
/// An event can be triggered by the user action e.g. clicking the mouse button
37
38
/// or tapping keyboard, or generated by APIs to represent the progress of an
38
39
/// asynchronous task. It can also be triggered programmatically, such as by
39
- /// calling the [`HTMLElement.click()`] (/en-US/docs/Web/API/HTMLElement/click)
40
+ /// calling the
41
+ /// [`HTMLElement.click()`] (https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click)
40
42
/// method of an element, or by defining the event, then sending it to a
41
43
/// specified target using
42
- /// [`EventTarget.dispatchEvent()`] (/en-US/docs/Web/API/EventTarget/dispatchEvent).
44
+ /// [`EventTarget.dispatchEvent()`] (https://developer.mozilla.org /en-US/docs/Web/API/EventTarget/dispatchEvent).
43
45
///
44
46
/// There are many types of events, some of which use other interfaces based on
45
47
/// the main `Event` interface. `Event` itself contains the properties and
@@ -50,12 +52,12 @@ typedef SlotAssignmentMode = String;
50
52
/// are usually connected (or "attached") to various
51
53
/// [HTML elements] (https://developer.mozilla.org/en-US/docs/Web/HTML/Element)
52
54
/// (such as `<button>` , `<div>` , `<span>` , etc.) using
53
- /// [`EventTarget.addEventListener()`] (/en-US/docs/Web/API/EventTarget/addEventListener),
55
+ /// [`EventTarget.addEventListener()`] (https://developer.mozilla.org /en-US/docs/Web/API/EventTarget/addEventListener),
54
56
/// and this generally replaces using the old HTML
55
57
/// [event handler attributes] (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes).
56
58
/// Further, when properly added, such handlers can also be disconnected if
57
59
/// needed using
58
- /// [`removeEventListener()`] (/en-US/docs/Web/API/EventTarget/removeEventListener).
60
+ /// [`removeEventListener()`] (https://developer.mozilla.org /en-US/docs/Web/API/EventTarget/removeEventListener).
59
61
///
60
62
/// > **Note:** One element can have several such handlers, even for the exact
61
63
/// > same event—particularly if separate, independent code modules attach them,
@@ -343,8 +345,8 @@ extension type EventTarget._(JSObject _) implements JSObject {
343
345
/// > same listener, and vice versa.
344
346
///
345
347
/// Event listeners can also be removed by passing an [AbortSignal] to an
346
- /// [EventTarget/ addEventListener] and then later calling
347
- /// [AbortController/ abort] on the controller owning the signal.
348
+ /// [EventTarget. addEventListener] and then later calling
349
+ /// [AbortController. abort] on the controller owning the signal.
348
350
external void removeEventListener (
349
351
String type,
350
352
EventListener ? callback, [
@@ -359,7 +361,7 @@ extension type EventTarget._(JSObject _) implements JSObject {
359
361
/// dispatched manually with `dispatchEvent()` .
360
362
///
361
363
/// Calling `dispatchEvent()` is the last step to _firing an event_. The event
362
- /// should have already been created and initialized using an [Event/ Event]
364
+ /// should have already been created and initialized using an [Event. Event]
363
365
/// constructor.
364
366
///
365
367
/// > **Note:** When calling this method, the [Event.target] property is
@@ -696,7 +698,7 @@ extension type Node._(JSObject _) implements EventTarget, JSObject {
696
698
/// including intrinsic (inline) listeners. It does _not_ copy event listeners
697
699
/// added
698
700
/// using
699
- /// [`addEventListener()`] (/en-US/docs/Web/API/EventTarget/addEventListener)
701
+ /// [`addEventListener()`] (https://developer.mozilla.org /en-US/docs/Web/API/EventTarget/addEventListener)
700
702
/// or
701
703
/// those assigned to element properties (e.g., `node.onclick =
702
704
/// someFunction`).
@@ -730,7 +732,7 @@ extension type Node._(JSObject _) implements EventTarget, JSObject {
730
732
731
733
/// The **`isSameNode()` ** method of the [Node] interface
732
734
/// is a legacy alias the [for the `===` strict equality
733
- /// operator](/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality).
735
+ /// operator](https://developer.mozilla.org /en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality).
734
736
/// That is, it tests whether two nodes are the same
735
737
/// (in other words, whether they reference the same object).
736
738
///
@@ -973,8 +975,8 @@ extension type Document._(JSObject _) implements Node, JSObject {
973
975
/// When called on
974
976
/// the [document] object, the complete document is searched, including the
975
977
/// root node. You may also call [Element.getElementsByClassName] on any
976
- /// element; it will return only elements which are
977
- /// descendants of the specified root element with the given class name(s).
978
+ /// element; it will return only elements which are descendants of the
979
+ /// specified root element with the given class name(s).
978
980
///
979
981
/// > **Warning:** This is a live [HTMLCollection] . Changes in the DOM will
980
982
/// > reflect in the array as the changes occur. If an element selected by
@@ -1048,11 +1050,11 @@ extension type Document._(JSObject _) implements Node, JSObject {
1048
1050
]);
1049
1051
1050
1052
/// **`Document.adoptNode()` ** transfers a from another [Document] into the
1051
- /// method's
1052
- /// document. The adopted node and its subtree are removed from their original
1053
- /// document (if
1054
- /// any), and their [Node.ownerDocument] is changed to the
1055
- /// current document. The node can then be inserted into the current document.
1053
+ /// method's document.
1054
+ /// The adopted node and its subtree are removed from their original document
1055
+ /// (if any), and their [Node.ownerDocument] is changed to the current
1056
+ /// document.
1057
+ /// The node can then be inserted into the current document.
1056
1058
external Node adoptNode (Node node);
1057
1059
1058
1060
/// The **`Document.createAttribute()` ** method creates a new
@@ -1226,7 +1228,7 @@ extension type Document._(JSObject _) implements Node, JSObject {
1226
1228
/// `copy` ) can work without an editable element.
1227
1229
///
1228
1230
/// > **Note:** Modifications performed by `execCommand()` may or may not
1229
- /// > trigger [Element/ beforeinput_event] and [Element/ input_event] events,
1231
+ /// > trigger [Element. beforeinput_event] and [Element. input_event] events,
1230
1232
/// > depending on the browser and configuration. If triggered, the handlers
1231
1233
/// > for the events will run before `execCommand()` returns. Authors need to
1232
1234
/// > be careful about such recursive calls, especially if they call
@@ -2164,7 +2166,7 @@ extension type Element._(JSObject _) implements Node, JSObject {
2164
2166
/// lower-cases the argument before searching for it. This is undesirable when
2165
2167
/// trying to
2166
2168
/// match SVG elements (such as
2167
- /// [`<linearGradient>`] (/en-US/docs/Web/SVG/Element/linearGradient))
2169
+ /// [`<linearGradient>`] (https://developer.mozilla.org /en-US/docs/Web/SVG/Element/linearGradient))
2168
2170
/// in an HTML document. Instead, use [Element.getElementsByTagNameNS] ,
2169
2171
/// which preserves the capitalization of the tag name.
2170
2172
///
@@ -2216,7 +2218,7 @@ extension type Element._(JSObject _) implements Node, JSObject {
2216
2218
/// pointer will
2217
2219
/// be targeted at the capture element until capture is released (via
2218
2220
/// [Element.releasePointerCapture] or the
2219
- /// [Element/ pointerup_event] event is fired).
2221
+ /// [Element. pointerup_event] event is fired).
2220
2222
///
2221
2223
/// > **Note:** Pointer capture will cause the target to capture all
2222
2224
/// > subsequent pointer events as if they were occurring over the capturing
@@ -2581,23 +2583,23 @@ extension type CharacterData._(JSObject _) implements Node, JSObject {
2581
2583
/// `CharacterData` node.
2582
2584
///
2583
2585
/// Strings are inserted as [Text] nodes; the string is being passed as
2584
- /// argument to the [Text/ Text] constructor.
2586
+ /// argument to the [Text. Text] constructor.
2585
2587
external void before (JSAny nodes);
2586
2588
2587
2589
/// The **`after()` ** method of the [CharacterData] interface
2588
2590
/// inserts a set of [Node] objects or strings in the children list of the
2589
2591
/// object's parent, just after the object itself.
2590
2592
///
2591
2593
/// Strings are inserted as [Text] nodes; the string is being passed as
2592
- /// argument to the [Text/ Text] constructor.
2594
+ /// argument to the [Text. Text] constructor.
2593
2595
external void after (JSAny nodes);
2594
2596
2595
2597
/// The **`replaceWith()` ** method of the [CharacterData] interface
2596
2598
/// replaces this node in the children list of its parent
2597
2599
/// with a set of [Node] objects or string.
2598
2600
///
2599
2601
/// Strings are inserted as [Text] nodes; the string is being passed as
2600
- /// argument to the [Text/ Text] constructor.
2602
+ /// argument to the [Text. Text] constructor.
2601
2603
external void replaceWith (JSAny nodes);
2602
2604
2603
2605
/// The **`remove()` ** method of the [CharacterData] removes the text
@@ -2828,8 +2830,8 @@ extension type StaticRange._(JSObject _) implements AbstractRange, JSObject {
2828
2830
/// contain nodes and parts of text nodes.
2829
2831
///
2830
2832
/// A range can be created by using the [Document.createRange] method. Range
2831
- /// objects can also be retrieved by using the [Selection/ getRangeAt] method of
2832
- /// the [Selection] object or the [Document/ caretRangeFromPoint] method of the
2833
+ /// objects can also be retrieved by using the [Selection. getRangeAt] method of
2834
+ /// the [Selection] object or the [Document. caretRangeFromPoint] method of the
2833
2835
/// [Document] object.
2834
2836
///
2835
2837
/// There also is the [Range.Range] constructor available.
0 commit comments