haikuwebkit/Source/WebCore/dom/Document+HTMLObsolete.idl

43 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

/*
* Copyright (C) 2020 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
// https://html.spec.whatwg.org/multipage/obsolete.html#Document-partial
partial interface Document {
[CEReactions] attribute [LegacyNullToEmptyString] DOMString fgColor;
[CEReactions, ImplementedAs=linkColorForBindings] attribute [LegacyNullToEmptyString] DOMString linkColor;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString vlinkColor;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString alinkColor;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString bgColor;
[SameObject] readonly attribute HTMLCollection anchors;
[SameObject] readonly attribute HTMLCollection applets;
undefined clear();
undefined captureEvents();
undefined releaseEvents();
Remove [Replaceable] extended attribute from `document.all` https://bugs.webkit.org/show_bug.cgi?id=223883 Reviewed by Darin Adler. LayoutTests/imported/w3c: * web-platform-tests/html/dom/idlharness.https-expected.txt: Source/WebCore: [Replaceable] semantics was introduced around 2003 to work around a web-compat issue. Since then, `document.all` was revised multiple times and standardized as [[IsHTMLDDA]] object without a setter, which was proven to be compatible with the web. This patch aligns WebKit with the spec [1], Blink, and Gecko. iOS apps are unlikely to accidentally depend on subtleties in `document.all` behavior since they were authored long after it became obsolete. Old versions of libraries, originally designed for the web, are also unlikely to rely on previous behavior, because `document.all` was never replaceable in some popular browsers. [1] https://html.spec.whatwg.org/multipage/obsolete.html#Document-partial Tests: fast/dom/undetectable-document-all.html imported/w3c/web-platform-tests/html/dom/idlharness.https.html * dom/Document+HTMLObsolete.idl: LayoutTests: * fast/dom/undetectable-document-all-expected.txt: * fast/dom/undetectable-document-all.html: * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: Canonical link: https://commits.webkit.org/236106@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-02 22:24:18 +00:00
[SameObject] readonly attribute HTMLAllCollection all;
};