mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
Uncommented some WebIDL TODO
This partially reverts commit 4b4bed5ce285a5240e6f79b957530be0961b18f8 by restoring a number of items to our WebIDL Closes #839
This commit is contained in:
parent
1ee579093b
commit
a02c4c1410
18
crates/web-sys/webidls/enabled/Document.webidl
vendored
18
crates/web-sys/webidls/enabled/Document.webidl
vendored
@ -20,9 +20,9 @@ interface nsISupports;
|
|||||||
interface URI;
|
interface URI;
|
||||||
interface nsIDocShell;
|
interface nsIDocShell;
|
||||||
interface nsILoadGroup;
|
interface nsILoadGroup;
|
||||||
|
*/
|
||||||
|
|
||||||
enum VisibilityState { "hidden", "visible" };
|
enum VisibilityState { "hidden", "visible" };
|
||||||
*/
|
|
||||||
|
|
||||||
/* https://dom.spec.whatwg.org/#dictdef-elementcreationoptions */
|
/* https://dom.spec.whatwg.org/#dictdef-elementcreationoptions */
|
||||||
dictionary ElementCreationOptions {
|
dictionary ElementCreationOptions {
|
||||||
@ -35,11 +35,8 @@ dictionary ElementCreationOptions {
|
|||||||
/* https://dom.spec.whatwg.org/#interface-document */
|
/* https://dom.spec.whatwg.org/#interface-document */
|
||||||
[Constructor]
|
[Constructor]
|
||||||
interface Document : Node {
|
interface Document : Node {
|
||||||
|
|
||||||
/*TODO
|
|
||||||
[Throws]
|
[Throws]
|
||||||
readonly attribute DOMImplementation implementation;
|
readonly attribute DOMImplementation implementation;
|
||||||
*/
|
|
||||||
[Pure, Throws, BinaryName="documentURIFromJS", NeedsCallerType]
|
[Pure, Throws, BinaryName="documentURIFromJS", NeedsCallerType]
|
||||||
readonly attribute DOMString URL;
|
readonly attribute DOMString URL;
|
||||||
[Pure, Throws, BinaryName="documentURIFromJS", NeedsCallerType]
|
[Pure, Throws, BinaryName="documentURIFromJS", NeedsCallerType]
|
||||||
@ -79,10 +76,8 @@ interface Document : Node {
|
|||||||
Text createTextNode(DOMString data);
|
Text createTextNode(DOMString data);
|
||||||
[NewObject]
|
[NewObject]
|
||||||
Comment createComment(DOMString data);
|
Comment createComment(DOMString data);
|
||||||
/*TODO
|
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
|
ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
|
||||||
*/
|
|
||||||
|
|
||||||
[CEReactions, Throws]
|
[CEReactions, Throws]
|
||||||
Node importNode(Node node, optional boolean deep = false);
|
Node importNode(Node node, optional boolean deep = false);
|
||||||
@ -92,10 +87,8 @@ interface Document : Node {
|
|||||||
[NewObject, Throws, NeedsCallerType]
|
[NewObject, Throws, NeedsCallerType]
|
||||||
Event createEvent(DOMString interface);
|
Event createEvent(DOMString interface);
|
||||||
|
|
||||||
/*TODO
|
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
Range createRange();
|
Range createRange();
|
||||||
*/
|
|
||||||
|
|
||||||
// NodeFilter.SHOW_ALL = 0xFFFFFFFF
|
// NodeFilter.SHOW_ALL = 0xFFFFFFFF
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
@ -110,26 +103,22 @@ interface Document : Node {
|
|||||||
|
|
||||||
// These are not in the spec, but leave them for now for backwards compat.
|
// These are not in the spec, but leave them for now for backwards compat.
|
||||||
// So sort of like Gecko extensions
|
// So sort of like Gecko extensions
|
||||||
/*TODO
|
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
CDATASection createCDATASection(DOMString data);
|
CDATASection createCDATASection(DOMString data);
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
Attr createAttribute(DOMString name);
|
Attr createAttribute(DOMString name);
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
Attr createAttributeNS(DOMString? namespace, DOMString name);
|
Attr createAttributeNS(DOMString? namespace, DOMString name);
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/dom.html#the-document-object
|
// https://html.spec.whatwg.org/multipage/dom.html#the-document-object
|
||||||
partial interface Document {
|
partial interface Document {
|
||||||
/*TODO
|
|
||||||
[PutForwards=href, Unforgeable] readonly attribute Location? location;
|
[PutForwards=href, Unforgeable] readonly attribute Location? location;
|
||||||
//(HTML only) attribute DOMString domain;
|
//(HTML only) attribute DOMString domain;
|
||||||
readonly attribute DOMString referrer;
|
readonly attribute DOMString referrer;
|
||||||
//(HTML only) attribute DOMString cookie;
|
//(HTML only) attribute DOMString cookie;
|
||||||
readonly attribute DOMString lastModified;
|
readonly attribute DOMString lastModified;
|
||||||
readonly attribute DOMString readyState;
|
readonly attribute DOMString readyState;
|
||||||
*/
|
|
||||||
|
|
||||||
// DOM tree accessors
|
// DOM tree accessors
|
||||||
//(Not proxy yet)getter object (DOMString name);
|
//(Not proxy yet)getter object (DOMString name);
|
||||||
@ -305,11 +294,8 @@ partial interface Document {
|
|||||||
// https://w3c.github.io/page-visibility/#extensions-to-the-document-interface
|
// https://w3c.github.io/page-visibility/#extensions-to-the-document-interface
|
||||||
partial interface Document {
|
partial interface Document {
|
||||||
readonly attribute boolean hidden;
|
readonly attribute boolean hidden;
|
||||||
|
|
||||||
/*TODO
|
|
||||||
readonly attribute VisibilityState visibilityState;
|
readonly attribute VisibilityState visibilityState;
|
||||||
attribute EventHandler onvisibilitychange;
|
attribute EventHandler onvisibilitychange;
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://drafts.csswg.org/cssom/#extensions-to-the-document-interface
|
// https://drafts.csswg.org/cssom/#extensions-to-the-document-interface
|
||||||
@ -402,10 +388,8 @@ partial interface Document {
|
|||||||
|
|
||||||
// http://w3c.github.io/selection-api/#extensions-to-document-interface
|
// http://w3c.github.io/selection-api/#extensions-to-document-interface
|
||||||
partial interface Document {
|
partial interface Document {
|
||||||
/*TODO
|
|
||||||
[Throws]
|
[Throws]
|
||||||
Selection? getSelection();
|
Selection? getSelection();
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Extension to give chrome JS the ability to determine whether
|
// Extension to give chrome JS the ability to determine whether
|
||||||
|
@ -29,10 +29,8 @@ interface Element : Node {
|
|||||||
attribute DOMString id;
|
attribute DOMString id;
|
||||||
[CEReactions, Pure]
|
[CEReactions, Pure]
|
||||||
attribute DOMString className;
|
attribute DOMString className;
|
||||||
/*TODO
|
|
||||||
[Constant, PutForwards=value]
|
[Constant, PutForwards=value]
|
||||||
readonly attribute DOMTokenList classList;
|
readonly attribute DOMTokenList classList;
|
||||||
*/
|
|
||||||
|
|
||||||
[SameObject]
|
[SameObject]
|
||||||
readonly attribute NamedNodeMap attributes;
|
readonly attribute NamedNodeMap attributes;
|
||||||
|
4
crates/web-sys/webidls/enabled/Node.webidl
vendored
4
crates/web-sys/webidls/enabled/Node.webidl
vendored
@ -40,10 +40,8 @@ interface Node : EventTarget {
|
|||||||
readonly attribute boolean isConnected;
|
readonly attribute boolean isConnected;
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute Document? ownerDocument;
|
readonly attribute Document? ownerDocument;
|
||||||
/*TODO
|
|
||||||
[Pure]
|
[Pure]
|
||||||
Node getRootNode(optional GetRootNodeOptions options);
|
Node getRootNode(optional GetRootNodeOptions options);
|
||||||
*/
|
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute Node? parentNode;
|
readonly attribute Node? parentNode;
|
||||||
[Pure]
|
[Pure]
|
||||||
@ -103,8 +101,6 @@ interface Node : EventTarget {
|
|||||||
boolean isDefaultNamespace(DOMString? namespace);
|
boolean isDefaultNamespace(DOMString? namespace);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*TODO
|
|
||||||
dictionary GetRootNodeOptions {
|
dictionary GetRootNodeOptions {
|
||||||
boolean composed = false;
|
boolean composed = false;
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user