Update web-platform-tests to revision 614fd870e47c9f4e76291e5af4e32b676c0acac0

This commit is contained in:
WPT Sync Bot 2018-12-04 20:30:20 -05:00
parent 063bd7ac19
commit b49ffaa0f7
137 changed files with 4756 additions and 721 deletions

View file

@ -4,30 +4,30 @@
// Source: DOM Parsing and Serialization (https://w3c.github.io/DOM-Parsing/)
[Constructor, Exposed=Window]
interface DOMParser {
[NewObject] Document parseFromString(DOMString str, SupportedType type);
};
interface DOMParser {
[NewObject] Document parseFromString(DOMString str, SupportedType type);
};
enum SupportedType {
"text/html",
"text/xml",
"application/xml",
"application/xhtml+xml",
"image/svg+xml"
};
enum SupportedType {
"text/html",
"text/xml",
"application/xml",
"application/xhtml+xml",
"image/svg+xml"
};
[Constructor, Exposed=Window]
interface XMLSerializer {
DOMString serializeToString(Node root);
};
interface XMLSerializer {
DOMString serializeToString(Node root);
};
partial interface Element {
[CEReactions, TreatNullAs=EmptyString] attribute DOMString innerHTML;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString outerHTML;
[CEReactions] void insertAdjacentHTML(DOMString position, DOMString text);
};
[CEReactions, TreatNullAs=EmptyString] attribute DOMString innerHTML;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString outerHTML;
[CEReactions] void insertAdjacentHTML(DOMString position, DOMString text);
};
partial interface Range {
[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
};
[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
};

View file

@ -4,6 +4,6 @@
// Source: Audio Output Devices API (https://w3c.github.io/mediacapture-output/)
partial interface HTMLMediaElement {
readonly attribute DOMString sinkId;
Promise<void> setSinkId(DOMString sinkId);
[SecureContext] readonly attribute DOMString sinkId;
[SecureContext] Promise<void> setSinkId(DOMString sinkId);
};

View file

@ -46,8 +46,6 @@ dictionary CredentialCreationOptions {
AbortSignal signal;
};
typedef (FormData or URLSearchParams) CredentialBodyType;
[Constructor(HTMLFormElement form),
Constructor(PasswordCredentialData data),
Exposed=Window,
@ -64,6 +62,7 @@ partial dictionary CredentialRequestOptions {
dictionary PasswordCredentialData : CredentialData {
USVString name;
USVString iconURL;
required USVString origin;
required USVString password;
};
@ -94,6 +93,7 @@ partial dictionary CredentialRequestOptions {
dictionary FederatedCredentialInit : CredentialData {
USVString name;
USVString iconURL;
required USVString origin;
required USVString provider;
DOMString protocol;
};

View file

@ -4,11 +4,13 @@
// Source: Input Events Level 1 (https://cdn.staticaly.com/gh/w3c/input-events/v1/index.html)
partial interface InputEvent {
readonly attribute DataTransfer? dataTransfer;
sequence<StaticRange> getTargetRanges();
};
readonly attribute DOMString inputType;
readonly attribute DataTransfer? dataTransfer;
sequence<StaticRange> getTargetRanges();
};
partial dictionary InputEventInit {
DataTransfer? dataTransfer = null;
sequence<StaticRange> targetRanges = [];
};
partial dictionary InputEventInit {
DOMString inputType = "";
DataTransfer? dataTransfer = null;
sequence<StaticRange> targetRanges = [];
};

View file

@ -160,11 +160,12 @@ dictionary OverconstrainedErrorEventInit : EventInit {
};
partial interface Navigator {
[SameObject]
[SameObject, SecureContext]
readonly attribute MediaDevices mediaDevices;
};
[Exposed=Window]
[Exposed=Window,
SecureContext]
interface MediaDevices : EventTarget {
attribute EventHandler ondevicechange;
Promise<sequence<MediaDeviceInfo>> enumerateDevices();
@ -190,6 +191,7 @@ enum MediaDeviceKind {
};
partial interface Navigator {
[SecureContext]
void getUserMedia(MediaStreamConstraints constraints, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback);
};

View file

@ -5,15 +5,12 @@
dictionary BasicCardRequest {
sequence<DOMString> supportedNetworks;
sequence<BasicCardType> supportedTypes;
};
dictionary BasicCardChangeDetails {
PaymentAddress? billingAddress;
};
enum BasicCardType { "credit", "debit", "prepaid" };
dictionary BasicCardResponse {
required DOMString cardNumber;
DOMString cardholderName;

View file

@ -26,6 +26,7 @@ interface PerformanceObserver {
void observe(PerformanceObserverInit options);
void disconnect();
PerformanceEntryList takeRecords();
static readonly attribute FrozenArray<DOMString> supportedEntryTypes;
};
dictionary PerformanceObserverInit {

View file

@ -5,34 +5,34 @@ typedef (DOMString or TrustedScript) ScriptString;
typedef (DOMString or TrustedScriptURL) ScriptURLString;
typedef (USVString or TrustedURL) URLString;
[Exposed=Window]
[Exposed=(Window, Worker)]
interface TrustedHTML {
stringifier;
};
[Exposed=Window]
[Exposed=(Window, Worker)]
interface TrustedScript {
stringifier;
};
[Exposed=Window]
[Exposed=(Window, Worker)]
interface TrustedScriptURL {
stringifier;
};
[Exposed=Window]
[Exposed=(Window, Worker)]
interface TrustedURL {
stringifier;
};
[Exposed=Window]
[Exposed=(Window, Worker)]
interface TrustedTypePolicyFactory {
[Unforgeable] TrustedTypePolicy createPolicy(DOMString policyName, TrustedTypePolicyOptions policyOptions);
// All the policy object names that have been created
[Unforgeable] sequence<DOMString> getPolicyNames();
};
[Exposed=Window]
[Exposed=(Window, Worker)]
interface TrustedTypePolicy {
[Unforgeable] readonly attribute DOMString name;
[Unforgeable] TrustedHTML createHTML(DOMString input);