WebAPIKit icon indicating copy to clipboard operation
WebAPIKit copied to clipboard

Access the DOM and other Web APIs from Swift! (Very much a WIP)

Results 14 WebAPIKit issues
Sort by recently updated
recently updated
newest added

to fix https://github.com/swiftwasm/WebAPIKit/issues/49 I don't really figure out how the mixins works. So I add an workaround to fix this issue.

`extension HTMLElement: ElementCSSInlineStyle {}` should be add to the library. Now the ElementCSSInlineStyle is almost useless.

fix https://github.com/swiftwasm/WebAPIKit/issues/48 I check all type that return Self, only five of them need to update. One in WebAudio already updated at patch before. This pr update the other four.

The `appendChild(node: Node)` for `Node` return type should be same as the child, not the parent. Now if you use the div element to add a span, it would cause...

I want to use custom elements. https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements Is there any way to do this? If the WebAPIKit not support this yet, is there any way to do this with JavascriptKit?

Currently, WebGL 1.0, WebGL 2.0, and WebGPU can't be split into separate modules as targets, as `enum RenderingContext` wraps all available context types and needs to have all of them...

enhancement

These are a Cursed Object in the WebIDL spec (https://webidl.spec.whatwg.org/#idl-callback-interfaces), and they’re essentially shorthand for a union between a function/closure type and an object with a property matching that function...

enhancement

One of the difficulties of splitting modules is that webidl files make circular references. For example, dom.idl and html.idl reference each other. Here is my basic idea to solve the...

https://github.com/swiftwasm/DOMKit/blob/070f99efca195eaa38f46beeb4dc46ca1d6ce04b/Sources/WebIDLToSwift/WebIDL%2BSwiftRepresentation.swift#L607-L622

enhancement

[`FrozenArray`](https://webidl.spec.whatwg.org/#idl-frozen-array)s are essentially readonly arrays in Swift. [`ObservableArray`](https://webidl.spec.whatwg.org/#idl-observable-array)s seem to have an identical API to a regular array, except that the spec can define custom behaviors when the array is...

enhancement