File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change
1
+ //
2
+ // Customized.swift
3
+ //
4
+ //
5
+ // Created by Jed Fox on 2023-01-28.
6
+ //
7
+
8
+ import Foundation
9
+
10
+ extension HTMLFormControlsCollection {
11
+ // removes `override` since the superclass returns a more constrained type `Element`
12
+ @inlinable public func namedItem( name: String ) -> Element_or_RadioNodeList ? {
13
+ let this = jsObject
14
+ return this [ Strings . namedItem] . function!( this: this, arguments: [ _toJSValue ( name) ] ) . fromJSValue ( ) !
15
+ }
16
+ }
Original file line number Diff line number Diff line change @@ -6973,10 +6973,7 @@ public class HTMLFormControlsCollection: HTMLCollection {
6973
6973
jsObject[key].fromJSValue()
6974
6974
}
6975
6975
6976
- @inlinable override public func namedItem(name: String) -> Element_or_RadioNodeList? {
6977
- let this = jsObject
6978
- return this[Strings.namedItem].function!(this: this, arguments: [_toJSValue(name)]).fromJSValue()!
6979
- }
6976
+ // XXX: member 'namedItem' is ignored
6980
6977
}
6981
6978
6982
6979
public class HTMLFormElement: HTMLElement {
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ enum IDLBuilder {
72
72
// manually implemented
73
73
" HTMLCanvasElement " : [ " getContext " ] ,
74
74
" OffscreenCanvas " : [ " getContext " ] ,
75
+ " HTMLFormControlsCollection " : [ " namedItem " ]
75
76
] ,
76
77
types: merged. types
77
78
)
You can’t perform that action at this time.
0 commit comments