Changeset 287996 in webkit
- Timestamp:
- Jan 13, 2022 3:19:39 PM (6 months ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-supports-expected.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/ipad/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLScriptElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLScriptElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r287993 r287996 1 2022-01-13 Chris Dumez <cdumez@apple.com> 2 3 Implement HTMLScriptElement.supports(type) method 4 https://bugs.webkit.org/show_bug.cgi?id=229929 5 <rdar://problem/82933899> 6 7 Reviewed by Geoff Garen and Darin Adler. 8 9 Rebaseline test now that more checks are passing. 10 11 * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 12 * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: 13 1 14 2022-01-13 Gabriel Nava Marino <gnavamarino@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/ChangeLog
r287977 r287996 1 2022-01-13 Chris Dumez <cdumez@apple.com> 2 3 Implement HTMLScriptElement.supports(type) method 4 https://bugs.webkit.org/show_bug.cgi?id=229929 5 <rdar://problem/82933899> 6 7 Reviewed by Geoff Garen and Darin Adler. 8 9 Rebaseline test now that more checks are passing. 10 11 * web-platform-tests/html/semantics/scripting-1/the-script-element/script-supports-expected.txt: 12 1 13 2022-01-13 Ziran Sun <zsun@igalia.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-supports-expected.txt
r285346 r287996 1 1 2 FAIL Type of HTMLScriptElement.supports is function assert_equals: expected "function" but got "undefined" 3 FAIL HTMLScriptElement.supports resurns true for 'classic' HTMLScriptElement.supports is not a function. (In 'HTMLScriptElement.supports('classic')', 'HTMLScriptElement.supports' is undefined) 4 FAIL HTMLScriptElement.supports resurns true for 'module' HTMLScriptElement.supports is not a function. (In 'HTMLScriptElement.supports('module')', 'HTMLScriptElement.supports' is undefined) 5 FAIL HTMLScriptElement.supports returns false for JavaScript MIME types HTMLScriptElement.supports is not a function. (In 'HTMLScriptElement.supports('application/ecmascript')', 'HTMLScriptElement.supports' is undefined) 6 FAIL HTMLScriptElement.supports returns false for unsupported types HTMLScriptElement.supports is not a function. (In 'HTMLScriptElement.supports('')', 'HTMLScriptElement.supports' is undefined) 2 PASS Type of HTMLScriptElement.supports is function 3 PASS HTMLScriptElement.supports resurns true for 'classic' 4 PASS HTMLScriptElement.supports resurns true for 'module' 5 PASS HTMLScriptElement.supports returns false for JavaScript MIME types 6 PASS HTMLScriptElement.supports returns false for unsupported types 7 7 -
trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r286550 r287996 3836 3836 PASS HTMLScriptElement interface: attribute integrity 3837 3837 PASS HTMLScriptElement interface: attribute referrerPolicy 3838 FAIL HTMLScriptElement interface: operation supports(DOMString) assert_own_property: interface object missing static operation expected property "supports" missing 3838 PASS HTMLScriptElement interface: operation supports(DOMString) 3839 3839 PASS HTMLScriptElement interface: attribute charset 3840 3840 PASS HTMLScriptElement interface: attribute event … … 3852 3852 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type 3853 3853 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "supports(DOMString)" with the proper type 3854 FAIL HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError assert_own_property: interface object must have static operation as own property expected property "supports" missing 3854 PASS HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError 3855 3855 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "charset" with the proper type 3856 3856 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "event" with the proper type -
trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r287780 r287996 3826 3826 PASS HTMLScriptElement interface: attribute integrity 3827 3827 PASS HTMLScriptElement interface: attribute referrerPolicy 3828 FAIL HTMLScriptElement interface: operation supports(DOMString) assert_own_property: interface object missing static operation expected property "supports" missing 3828 PASS HTMLScriptElement interface: operation supports(DOMString) 3829 3829 PASS HTMLScriptElement interface: attribute charset 3830 3830 PASS HTMLScriptElement interface: attribute event … … 3842 3842 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type 3843 3843 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "supports(DOMString)" with the proper type 3844 FAIL HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError assert_own_property: interface object must have static operation as own property expected property "supports" missing 3844 PASS HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError 3845 3845 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "charset" with the proper type 3846 3846 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "event" with the proper type -
trunk/LayoutTests/platform/ipad/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r287780 r287996 3836 3836 PASS HTMLScriptElement interface: attribute integrity 3837 3837 PASS HTMLScriptElement interface: attribute referrerPolicy 3838 FAIL HTMLScriptElement interface: operation supports(DOMString) assert_own_property: interface object missing static operation expected property "supports" missing 3838 PASS HTMLScriptElement interface: operation supports(DOMString) 3839 3839 PASS HTMLScriptElement interface: attribute charset 3840 3840 PASS HTMLScriptElement interface: attribute event … … 3852 3852 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type 3853 3853 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "supports(DOMString)" with the proper type 3854 FAIL HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError assert_own_property: interface object must have static operation as own property expected property "supports" missing 3854 PASS HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError 3855 3855 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "charset" with the proper type 3856 3856 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "event" with the proper type -
trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r286550 r287996 3836 3836 PASS HTMLScriptElement interface: attribute integrity 3837 3837 PASS HTMLScriptElement interface: attribute referrerPolicy 3838 FAIL HTMLScriptElement interface: operation supports(DOMString) assert_own_property: interface object missing static operation expected property "supports" missing 3838 PASS HTMLScriptElement interface: operation supports(DOMString) 3839 3839 PASS HTMLScriptElement interface: attribute charset 3840 3840 PASS HTMLScriptElement interface: attribute event … … 3852 3852 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type 3853 3853 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "supports(DOMString)" with the proper type 3854 FAIL HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError assert_own_property: interface object must have static operation as own property expected property "supports" missing 3854 PASS HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError 3855 3855 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "charset" with the proper type 3856 3856 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "event" with the proper type -
trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt
r287657 r287996 3836 3836 PASS HTMLScriptElement interface: attribute integrity 3837 3837 PASS HTMLScriptElement interface: attribute referrerPolicy 3838 FAIL HTMLScriptElement interface: operation supports(DOMString) assert_own_property: interface object missing static operation expected property "supports" missing 3838 PASS HTMLScriptElement interface: operation supports(DOMString) 3839 3839 PASS HTMLScriptElement interface: attribute charset 3840 3840 PASS HTMLScriptElement interface: attribute event … … 3852 3852 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type 3853 3853 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "supports(DOMString)" with the proper type 3854 FAIL HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError assert_own_property: interface object must have static operation as own property expected property "supports" missing 3854 PASS HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError 3855 3855 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "charset" with the proper type 3856 3856 PASS HTMLScriptElement interface: document.createElement("script") must inherit property "event" with the proper type -
trunk/Source/WebCore/ChangeLog
r287993 r287996 1 2022-01-13 Chris Dumez <cdumez@apple.com> 2 3 Implement HTMLScriptElement.supports(type) method 4 https://bugs.webkit.org/show_bug.cgi?id=229929 5 <rdar://problem/82933899> 6 7 Reviewed by Geoff Garen and Darin Adler. 8 9 Implement HTMLScriptElement.supports(type) method which was fairly recently 10 introduced in the HTML specification: 11 - https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports 12 13 Blink and Gecko already implement this. 14 15 No new tests, rebaselined existing tests. 16 17 * html/HTMLScriptElement.h: 18 * html/HTMLScriptElement.idl: 19 1 20 2022-01-13 Gabriel Nava Marino <gnavamarino@apple.com> 2 21 -
trunk/Source/WebCore/html/HTMLScriptElement.h
r247509 r287996 52 52 using HTMLElement::deref; 53 53 54 static bool supports(StringView type) { return type == "classic" || type == "module"; } 55 54 56 private: 55 57 HTMLScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted); -
trunk/Source/WebCore/html/HTMLScriptElement.idl
r285478 r287996 34 34 [CEReactions=NotNeeded, Reflect, EnabledBySetting=SubresourceIntegrityEnabled] attribute DOMString integrity; 35 35 [EnabledBySetting=ReferrerPolicyAttributeEnabled, ImplementedAs=referrerPolicyForBindings, CEReactions=NotNeeded] attribute DOMString referrerPolicy; 36 37 static boolean supports(DOMString type); 36 38 };
Note: See TracChangeset
for help on using the changeset viewer.