From d71d1f9a2e0f3d20db2c594b0621bb5b70b882f5 Mon Sep 17 00:00:00 2001 From: Dave Tapuska Date: Thu, 13 Jun 2019 12:56:10 +0000 Subject: [PATCH] Bug 1553275 [wpt PR 16718] - Add experimental support for enterKeyHint., a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests Add experimental support for enterKeyHint. enterKeyHint allows customization of the virtual keyboard enter key. Enabled behind a flag since it isn't approved to ship yet. Spec: https://github.com/whatwg/html/pull/3538 BUG=634330 Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng Change-Id: I32b510d8157e0c676300a38bb4c7fa2bbced0b3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1221696 Commit-Queue: Dave Tapuska Reviewed-by: Jeremy Roman Reviewed-by: Changwan Ryu Reviewed-by: Avi Drissman Reviewed-by: Ken Buchanan Reviewed-by: Joshua Bell Cr-Commit-Position: refs/heads/master@{#661904} -- wp5At-commits: 74870bb3fbf231c8b89f529fbfea7f22ad149c33 wpt-pr: 16718 --- testing/web-platform/tests/html/dom/elements-misc.js | 1 + .../forms/attributes-common-to-form-controls/contains.json | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/html/dom/elements-misc.js b/testing/web-platform/tests/html/dom/elements-misc.js index df415aef159f7..b747ac6e5966c 100644 --- a/testing/web-platform/tests/html/dom/elements-misc.js +++ b/testing/web-platform/tests/html/dom/elements-misc.js @@ -53,6 +53,7 @@ var miscElements = { // Global attributes should exist even on unknown elements undefinedelement: { + enterKeyHint: {type: "enum", keywords: ["enter", "done", "go", "next", "previous", "search", "send"]}, inputMode: {type: "enum", keywords: ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"]}, }, }; diff --git a/testing/web-platform/tests/html/semantics/forms/attributes-common-to-form-controls/contains.json b/testing/web-platform/tests/html/semantics/forms/attributes-common-to-form-controls/contains.json index 357a1e6a7b8e9..62326d33f8748 100644 --- a/testing/web-platform/tests/html/semantics/forms/attributes-common-to-form-controls/contains.json +++ b/testing/web-platform/tests/html/semantics/forms/attributes-common-to-form-controls/contains.json @@ -23,6 +23,10 @@ "id": "autofocusing-a-form-control-the-autofocus-attribute", "original_id": "autofocusing-a-form-control:-the-autofocus-attribute" }, + { + "id": "input-modalities-the-enterkeyhint-attribute", + "original_id": "input-modalities:-the-enterkeyhint-attribute" + }, { "id": "input-modalities-the-inputmode-attribute", "original_id": "input-modalities:-the-inputmode-attribute" @@ -31,4 +35,4 @@ "id": "autofilling-form-controls-the-autocomplete-attribute", "original_id": "autofilling-form-controls:-the-autocomplete-attribute" } -] \ No newline at end of file +]