haikuwebkit/Source/WebCore/dom/ElementContentEditable.idl

33 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

Re-align HTMLElement with the HTML spec https://bugs.webkit.org/show_bug.cgi?id=217202 Reviewed by Darin Adler. LayoutTests/imported/w3c: * web-platform-tests/html/dom/idlharness.https-expected.txt: * web-platform-tests/svg/types/scripted/event-handler-all-document-element-events-expected.txt: Update more now passing results. Source/WebCore: - Stops including DocumentAndElementEventHandlers in Element, and instead matches spec and other browsers by having HTMLElement, SVGElement and MathMLElement include it. - Splits out ElementContentEditable from HTMLElement and has HTMLElement include it. - Splits CSSOM View parts of HTMLElement out into HTMLElement+CSSOMView.idl - Re-orders includes to more closely match spec'd order. Has no real effect but made me happy. Updates results to existing tests that are now passing, all due to the change to include DocumentAndElementEventHandlers in the Element subclasses, not Element itself. * CMakeLists.txt: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * dom/Element.idl: * dom/ElementContentEditable.idl: Added. * html/HTMLBodyElement.idl: * html/HTMLElement+CSSOMView.idl: Added. * html/HTMLElement.idl: * html/HTMLFrameSetElement.idl: * html/HTMLMediaElement+AudioOutput.idl: Added. * html/HTMLMediaElementAudioOutput.idl: Removed. * mathml/MathMLElement.idl: * svg/SVGElement.idl: LayoutTests: * fast/events/DocumentAndElementEventHandlers-expected.txt: * fast/events/DocumentAndElementEventHandlers.html: Update test to match spec by checking on the HTMLElement prototype, not the Element prototype. * fast/dom/event-handler-attributes-expected.txt: * 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: Update more now passing results. Canonical link: https://commits.webkit.org/230010@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-02 20:30:27 +00:00
/*
* 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/#elementcontenteditable
interface mixin ElementContentEditable {
[CEReactions] attribute DOMString contentEditable;
[CEReactions, EnabledBySetting=EnterKeyHint] attribute DOMString enterKeyHint;
readonly attribute boolean isContentEditable;
[CEReactions] attribute DOMString inputMode;
};