Drop support for <isindex>
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Sep 2016 15:02:44 +0000 (15:02 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Sep 2016 15:02:44 +0000 (15:02 +0000)
commit8bca3eefe73d580d74b2167e14c4b0105fab0c5a
treead330be38ca8e5cc12adfd8eab7b723a32bcbc05
parent9f20451da5e8ea0a4b99a2cced25e44488787de8
Drop support for <isindex>
https://bugs.webkit.org/show_bug.cgi?id=7139

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Import layout test coverage from W3C web-platform-tests. We used to fail
the last check but we now pass it. Chrome also passes this last check.

* web-platform-tests/html/semantics/forms/historical-expected.txt: Added.
* web-platform-tests/html/semantics/forms/historical.html: Added.
* web-platform-tests/html/semantics/forms/w3c-import.log: Added.

Source/WebCore:

Drop support for <isindex> and <input name=isindex>. Those are no longer
in the HTML specification and Chrome / Edge have already dropped their
support. Firefox is also planning on dropping this.

Test: imported/w3c/web-platform-tests/html/semantics/forms/historical.html

* css/StyleResolver.cpp:
(WebCore::elementTypeHasAppearanceFromUAStyle):
* css/html.css:
(input, textarea, keygen, select, button, meter, progress):
(input, textarea, keygen, select, button):
(#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS):
(input::placeholder):
(input:focus, textarea:focus, keygen:focus, select:focus):
* dom/Element.cpp:
(WebCore::Element::ieForbidsInsertHTML):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::HTMLInputElement):
* html/HTMLTagNames.in:
* html/parser/HTMLStackItem.h:
(WebCore::isSpecialNode):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::processStartTagForInBody):
(WebCore::HTMLTreeBuilder::processCloseWhenNestedTag): Deleted.
(WebCore::createCaseMap): Deleted.
* html/parser/HTMLTreeBuilder.h:
* platform/network/FormData.cpp:
(WebCore::FormData::appendKeyValuePairItems):

Source/WebInspectorUI:

Drop references to isindex.

* UserInterface/Views/DOMTreeElement.js:

Source/WebKit/mac:

Drop references to isindex.

* WebCoreSupport/WebEditorClient.mm:
(attributesForAttributedStringConversion):
* WebView/WebHTMLView.mm:
(+[WebHTMLView _excludedElementsForAttributedStringConversion]):

LayoutTests:

Drop outdated tests / checks.

* dom/html/level2/html/HTMLIsIndexElement01-expected.txt: Removed.
* dom/html/level2/html/HTMLIsIndexElement01.html: Removed.
* dom/html/level2/html/HTMLIsIndexElement01.js: Removed.
* dom/html/level2/html/HTMLIsIndexElement02-expected.txt: Removed.
* dom/html/level2/html/HTMLIsIndexElement02.html: Removed.
* dom/html/level2/html/HTMLIsIndexElement02.js: Removed.
* dom/html/level2/html/HTMLIsIndexElement03-expected.txt: Removed.
* dom/html/level2/html/HTMLIsIndexElement03.html: Removed.
* dom/html/level2/html/HTMLIsIndexElement03.js: Removed.
* fast/dom/HTMLIsIndexElement/prototype-chain-expected.txt: Removed.
* fast/dom/HTMLIsIndexElement/prototype-chain.html: Removed.
* fast/dom/HTMLIsIndexElement/script-tests/prototype-chain.js: Removed.
* fast/dom/isindex-001.html: Removed.
* fast/dom/isindex-002.html: Removed.
* fast/events/resources/tabindex-focus-blur-all-frame1.html:
* fast/events/resources/tabindex-focus-blur-all-frame2.html:
* fast/events/resources/tabindex-focus-blur-all-iframe1.html:
* fast/events/resources/tabindex-focus-blur-all-iframe2.html:
* fast/forms/isindex-name-expected.txt: Removed.
* fast/forms/isindex-name.html: Removed.
* fast/forms/isindex-placeholder-expected.html: Removed.
* fast/forms/isindex-placeholder.html: Removed.
* fast/forms/text-style-color.html: Removed.
* fast/parser/fragment-parser-expected.txt:
* fast/parser/script-tests/fragment-parser.js:
* fast/replaced/table-percent-height-text-controls-expected.txt:
* fast/replaced/table-percent-height-text-controls.html:
* html5lib/generated/run-isindex-data-expected.txt: Removed.
* html5lib/generated/run-isindex-data.html: Removed.
* html5lib/generated/run-isindex-write-expected.txt: Removed.
* html5lib/generated/run-isindex-write.html: Removed.
* html5lib/resources/isindex.dat:
* html5lib/resources/tests19.dat:
* html5lib/resources/tests2.dat:
* html5lib/resources/webkit02.dat:
* http/tests/misc/isindex-formdata-expected.txt: Removed.
* http/tests/misc/isindex-formdata.html: Removed.
* http/tests/misc/isindex-with-no-form-base-href-expected.txt: Removed.
* http/tests/misc/isindex-with-no-form-base-href.html: Removed.
* http/tests/misc/isindex-with-no-form-expected.txt: Removed.
* http/tests/misc/isindex-with-no-form.html: Removed.
* http/tests/misc/resources/isindex-with-no-form-base-href-submit.html: Removed.
* http/tests/misc/resources/isindex-with-no-form-base-href.html: Removed.
* platform/efl/fast/dom/isindex-001-expected.png: Removed.
* platform/efl/fast/dom/isindex-001-expected.txt: Removed.
* platform/efl/fast/dom/isindex-002-expected.png: Removed.
* platform/efl/fast/dom/isindex-002-expected.txt: Removed.
* platform/efl/fast/forms/text-style-color-expected.png: Removed.
* platform/efl/fast/forms/text-style-color-expected.txt: Removed.
* platform/gtk/fast/dom/isindex-001-expected.png: Removed.
* platform/gtk/fast/dom/isindex-001-expected.txt: Removed.
* platform/gtk/fast/dom/isindex-002-expected.png: Removed.
* platform/gtk/fast/dom/isindex-002-expected.txt: Removed.
* platform/gtk/fast/forms/text-style-color-expected.png: Removed.
* platform/gtk/fast/forms/text-style-color-expected.txt: Removed.
* platform/ios-simulator/fast/dom/isindex-001-expected.txt: Removed.
* platform/ios-simulator/fast/dom/isindex-002-expected.txt: Removed.
* platform/ios-simulator/fast/forms/text-style-color-expected.txt: Removed.
* platform/mac-elcapitan/fast/dom/isindex-001-expected.txt: Removed.
* platform/mac-elcapitan/fast/dom/isindex-002-expected.txt: Removed.
* platform/mac-elcapitan/fast/forms/text-style-color-expected.txt: Removed.
* platform/mac/fast/dom/isindex-001-expected.png: Removed.
* platform/mac/fast/dom/isindex-001-expected.txt: Removed.
* platform/mac/fast/dom/isindex-002-expected.png: Removed.
* platform/mac/fast/dom/isindex-002-expected.txt: Removed.
* platform/mac/fast/forms/text-style-color-expected.png: Removed.
* platform/mac/fast/forms/text-style-color-expected.txt: Removed.
* platform/win/fast/dom/isindex-001-expected.txt: Removed.
* platform/win/fast/dom/isindex-002-expected.txt: Removed.
* platform/win/fast/forms/text-style-color-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
90 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/html/level2/html/HTMLIsIndexElement01-expected.txt [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement01.html [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement01.js [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement02-expected.txt [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement02.html [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement02.js [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement03-expected.txt [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement03.html [deleted file]
LayoutTests/dom/html/level2/html/HTMLIsIndexElement03.js [deleted file]
LayoutTests/fast/dom/HTMLIsIndexElement/prototype-chain-expected.txt [deleted file]
LayoutTests/fast/dom/HTMLIsIndexElement/prototype-chain.html [deleted file]
LayoutTests/fast/dom/HTMLIsIndexElement/script-tests/prototype-chain.js [deleted file]
LayoutTests/fast/dom/isindex-001.html [deleted file]
LayoutTests/fast/dom/isindex-002.html [deleted file]
LayoutTests/fast/events/resources/tabindex-focus-blur-all-frame1.html
LayoutTests/fast/events/resources/tabindex-focus-blur-all-frame2.html
LayoutTests/fast/events/resources/tabindex-focus-blur-all-iframe1.html
LayoutTests/fast/events/resources/tabindex-focus-blur-all-iframe2.html
LayoutTests/fast/forms/isindex-name-expected.txt [deleted file]
LayoutTests/fast/forms/isindex-name.html [deleted file]
LayoutTests/fast/forms/isindex-placeholder-expected.html [deleted file]
LayoutTests/fast/forms/isindex-placeholder.html [deleted file]
LayoutTests/fast/forms/text-style-color.html [deleted file]
LayoutTests/fast/parser/fragment-parser-expected.txt
LayoutTests/fast/parser/script-tests/fragment-parser.js
LayoutTests/fast/replaced/table-percent-height-text-controls-expected.txt
LayoutTests/fast/replaced/table-percent-height-text-controls.html
LayoutTests/html5lib/generated/run-isindex-data-expected.txt [deleted file]
LayoutTests/html5lib/generated/run-isindex-data.html [deleted file]
LayoutTests/html5lib/generated/run-isindex-write-expected.txt [deleted file]
LayoutTests/html5lib/generated/run-isindex-write.html [deleted file]
LayoutTests/html5lib/resources/isindex.dat
LayoutTests/html5lib/resources/tests19.dat
LayoutTests/html5lib/resources/tests2.dat
LayoutTests/html5lib/resources/webkit02.dat
LayoutTests/http/tests/misc/isindex-formdata-expected.txt [deleted file]
LayoutTests/http/tests/misc/isindex-formdata.html [deleted file]
LayoutTests/http/tests/misc/isindex-with-no-form-base-href-expected.txt [deleted file]
LayoutTests/http/tests/misc/isindex-with-no-form-base-href.html [deleted file]
LayoutTests/http/tests/misc/isindex-with-no-form-expected.txt [deleted file]
LayoutTests/http/tests/misc/isindex-with-no-form.html [deleted file]
LayoutTests/http/tests/misc/resources/isindex-with-no-form-base-href-submit.html [deleted file]
LayoutTests/http/tests/misc/resources/isindex-with-no-form-base-href.html [deleted file]
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/historical-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/historical.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/w3c-import.log [new file with mode: 0644]
LayoutTests/platform/efl/fast/dom/isindex-001-expected.png [deleted file]
LayoutTests/platform/efl/fast/dom/isindex-001-expected.txt [deleted file]
LayoutTests/platform/efl/fast/dom/isindex-002-expected.png [deleted file]
LayoutTests/platform/efl/fast/dom/isindex-002-expected.txt [deleted file]
LayoutTests/platform/efl/fast/forms/text-style-color-expected.png [deleted file]
LayoutTests/platform/efl/fast/forms/text-style-color-expected.txt [deleted file]
LayoutTests/platform/gtk/fast/dom/isindex-001-expected.png [deleted file]
LayoutTests/platform/gtk/fast/dom/isindex-001-expected.txt [deleted file]
LayoutTests/platform/gtk/fast/dom/isindex-002-expected.png [deleted file]
LayoutTests/platform/gtk/fast/dom/isindex-002-expected.txt [deleted file]
LayoutTests/platform/gtk/fast/forms/text-style-color-expected.png [deleted file]
LayoutTests/platform/gtk/fast/forms/text-style-color-expected.txt [deleted file]
LayoutTests/platform/ios-simulator/fast/dom/isindex-001-expected.txt [deleted file]
LayoutTests/platform/ios-simulator/fast/dom/isindex-002-expected.txt [deleted file]
LayoutTests/platform/ios-simulator/fast/forms/text-style-color-expected.txt [deleted file]
LayoutTests/platform/mac-elcapitan/fast/dom/isindex-001-expected.txt [deleted file]
LayoutTests/platform/mac-elcapitan/fast/dom/isindex-002-expected.txt [deleted file]
LayoutTests/platform/mac-elcapitan/fast/forms/text-style-color-expected.txt [deleted file]
LayoutTests/platform/mac/fast/dom/isindex-001-expected.png [deleted file]
LayoutTests/platform/mac/fast/dom/isindex-001-expected.txt [deleted file]
LayoutTests/platform/mac/fast/dom/isindex-002-expected.png [deleted file]
LayoutTests/platform/mac/fast/dom/isindex-002-expected.txt [deleted file]
LayoutTests/platform/mac/fast/forms/text-style-color-expected.png [deleted file]
LayoutTests/platform/mac/fast/forms/text-style-color-expected.txt [deleted file]
LayoutTests/platform/win/fast/dom/isindex-001-expected.txt [deleted file]
LayoutTests/platform/win/fast/dom/isindex-002-expected.txt [deleted file]
LayoutTests/platform/win/fast/forms/text-style-color-expected.txt [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/html.css
Source/WebCore/dom/Element.cpp
Source/WebCore/html/HTMLInputElement.cpp
Source/WebCore/html/HTMLTagNames.in
Source/WebCore/html/parser/HTMLStackItem.h
Source/WebCore/html/parser/HTMLTreeBuilder.cpp
Source/WebCore/html/parser/HTMLTreeBuilder.h
Source/WebCore/platform/network/FormData.cpp
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
Source/WebKit/mac/WebView/WebHTMLView.mm