|
1 | 1 | --- a/Sources/DOM/Generated.swift |
2 | 2 | +++ b/Sources/DOM/Generated.swift |
3 | | -@@ -1005,8 +1005,15 @@ public class BeforeUnloadEvent: Event { |
| 3 | +@@ -1006,8 +1006,15 @@ public class BeforeUnloadEvent: Event { |
4 | 4 | super.init(unsafelyWrapping: jsObject) |
5 | 5 | } |
6 | | - |
| 6 | + |
7 | 7 | + @available(*, unavailable) |
8 | 8 | + override public var returnValue: Bool { |
9 | 9 | + get { !_returnValue.wrappedValue.isEmpty } |
|
17 | 17 | get { _returnValue.wrappedValue } |
18 | 18 | set { _returnValue.wrappedValue = newValue } |
19 | 19 | } |
20 | | -@@ -7069,7 +7076,8 @@ public class HTMLFormControlsCollection: HTMLCollection { |
| 20 | +@@ -7070,7 +7077,8 @@ public class HTMLFormControlsCollection: HTMLCollection { |
21 | 21 | jsObject[key].fromJSValue() |
22 | 22 | } |
23 | | - |
| 23 | + |
24 | 24 | - @inlinable override public func namedItem(name: String) -> Element_or_RadioNodeList? { |
25 | 25 | + // `override` removed since the superclass returns a more constrained type `Element` |
26 | 26 | + @inlinable func namedItem(name: String) -> Element_or_RadioNodeList? { |
27 | 27 | let this = jsObject |
28 | | - return this[Strings.namedItem].function!(this: this, arguments: [_toJSValue(name)]).fromJSValue()! |
| 28 | + return this[Strings.namedItem].function!(this: this, arguments: [_toJSValue(name)]).fromJSValue() |
29 | 29 | } |
30 | | -@@ -20376,19 +20384,9 @@ public enum CanvasImageSource: JSValueCompatible, Any_CanvasImageSource { |
| 30 | +@@ -20369,19 +20377,9 @@ public enum CanvasImageSource: JSValueCompatible, Any_CanvasImageSource { |
31 | 31 | self = val |
32 | 32 | } |
33 | | - |
| 33 | + |
34 | 34 | - init(_ htmlOrSVGImageElement: HTMLOrSVGImageElement) { |
35 | 35 | - let val: CanvasImageSource = .htmlOrSVGImageElement(htmlOrSVGImageElement) |
36 | 36 | - self = val |
|
47 | 47 | + let val: CanvasImageSource = .htmlOrSVGImageElement(htmlImageElement) |
48 | 48 | + self = val |
49 | 49 | } |
50 | | - |
| 50 | + |
51 | 51 | init(_ htmlVideoElement: HTMLVideoElement) { |
52 | | -@@ -21636,18 +21634,8 @@ public enum ImageBitmapSource: JSValueCompatible, Any_ImageBitmapSource { |
| 52 | +@@ -21629,18 +21627,8 @@ public enum ImageBitmapSource: JSValueCompatible, Any_ImageBitmapSource { |
53 | 53 | self = .init(val) |
54 | 54 | } |
55 | | - |
| 55 | + |
56 | 56 | - init(_ htmlOrSVGImageElement: HTMLOrSVGImageElement) { |
57 | 57 | - let val: CanvasImageSource = .htmlOrSVGImageElement(htmlOrSVGImageElement) |
58 | 58 | - self = .init(val) |
|
68 | 68 | + let val: CanvasImageSource = .htmlOrSVGImageElement(htmlImageElement) |
69 | 69 | self = .init(val) |
70 | 70 | } |
71 | | - |
| 71 | + |
0 commit comments