Skip to content

Add tests for the writingsuggestions attribute - #43780

Closed
sanketj wants to merge 3 commits into
web-platform-tests:masterfrom
sanketj:new-writing-attribute
Closed

sanketj wants to merge 3 commits into
web-platform-tests:masterfrom
sanketj:new-writing-attribute

Conversation

@sanketj

@sanketj sanketj commented Dec 22, 2023 •

Copy link
Copy Markdown
Contributor

whatwg/html#9065 proposes the introduction of a new attribute to control UA-provided writing assistance. This PR adds WPT test coverage for that attribute.

Corresponding spec PR: whatwg/html#10018

@sanketj sanketj changed the title [writingsuggestions] Add tests for the writingsuggestions attribute Add tests for the writingsuggestions attribute Dec 22, 2023

@marcoscaceres marcoscaceres left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are really thorough! Was great to see.

@marcoscaceres

Copy link
Copy Markdown
Contributor

Only nit is the formatting... could maybe run prettier over js tests, but no big deal if not.

@stephanieyzhang

stephanieyzhang commented Feb 6, 2024 •

Copy link
Copy Markdown
Contributor

Some of the getAttribute checks may need to be modified to align with the default behavior of missing/invalid content attributes. The content attributes are not affected by inheritance e.g.:

  1. If 'writingSuggestions' is missing on the element, then element..getAttribute('writingSuggestions') == null, regardless of its parents' attributes.
  2. If 'writingSuggestions' is set to an empty string, then element.getAttribute('writingSuggestions') == '', regardless of its parents' attributes.

This aligns with the content attribute behavior of the 'spellcheck' attribute, which 'writingSuggestions' shares a lot of similarities with. cc: @dandclark

chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 6, 2024
This CL implements the new 'writingSuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements if specified; otherwise, it default to "true".

Changes were verified against wpt tests:
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 6, 2024
This CL implements the new 'writingSuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements if specified; otherwise, it default to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 7, 2024
This CL implements the new 'writingSuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements if specified; otherwise, it default to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 8, 2024
This CL implements the new 'writingSuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements if specified; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 9, 2024
This CL implements the new 'writingSuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements if specified; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm missing coverage for:

  • input types to which the attribute does not apply.
  • Elements that are disabled.

@dandclark

Copy link
Copy Markdown
Contributor

I'm missing coverage for:

  • input types to which the attribute does not apply.
  • Elements that are disabled.

To be clear -- the attribute setting/getting/reflection behavior that's validated in this test would be the same for those elements. The spec's checks for disabled and non-applicable input types only applies to the steps determining whether the user agent actually applies the suggestions or not.

But, still a good idea to have these tests to verify that the attribute setting/getting/reflection behavior is no different.

chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 12, 2024
This CL implements the new 'writingSuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 12, 2024
This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 12, 2024
This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <[email protected]>
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1259389}
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 12, 2024
This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <[email protected]>
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1259389}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 15, 2024
…stonly

Automatic update from web-platform-tests
Add 'writingsuggestions' attribute

This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
web-platform-tests/wpt#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <[email protected]>
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1259389}

--

wpt-commits: dbbfe1b6f0efc3b68ce5d59bdb0c36b3dd615c86
wpt-pr: 44413
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 15, 2024
input types

This CL adds tests for disabled elements and input types to which
writing suggestions are not applicable (eg <input type="color"/>).

The 'writingsuggestions' attribute setting/getting/reflection behavior
for these types of elements is identical to that of elements on which
writing suggestions should be generated. The User Agent is responsible
for ensuring that writing suggestions aren't applied to these types of
elements.

github.com//pull/43780#issuecomment-1936426092

Bug: 1513953
Change-Id: I31aa03b131ab440d5d6e749c227837997f13464c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Feb 16, 2024
…stonly

Automatic update from web-platform-tests
Add 'writingsuggestions' attribute

This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
web-platform-tests/wpt#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <daniecmicrosoft.com>
Commit-Queue: Stephanie Zhang <stephanie.zhangmicrosoft.com>
Reviewed-by: Mason Freed <masonfchromium.org>
Cr-Commit-Position: refs/heads/main{#1259389}

--

wpt-commits: dbbfe1b6f0efc3b68ce5d59bdb0c36b3dd615c86
wpt-pr: 44413

UltraBlame original commit: c25909ad3c081dfe228692bab7ecddc4c087a642
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 16, 2024
input types

This CL adds tests for disabled elements and input types to which
writing suggestions are not applicable (eg <input type="color"/>).

The 'writingsuggestions' attribute setting/getting/reflection behavior
for these types of elements is identical to that of elements on which
writing suggestions should be generated. The User Agent is responsible
for ensuring that writing suggestions aren't applied to these types of
elements.

github.com//pull/43780#issuecomment-1936426092

Bug: 1513953
Change-Id: I31aa03b131ab440d5d6e749c227837997f13464c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5299628
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Sanket Joshi <[email protected]>
Reviewed-by: Dan Clark <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1261510}
chromium-wpt-export-bot pushed a commit that referenced this pull request Feb 16, 2024
input types

This CL adds tests for disabled elements and input types to which
writing suggestions are not applicable (eg <input type="color"/>).

The 'writingsuggestions' attribute setting/getting/reflection behavior
for these types of elements is identical to that of elements on which
writing suggestions should be generated. The User Agent is responsible
for ensuring that writing suggestions aren't applied to these types of
elements.

github.com//pull/43780#issuecomment-1936426092

Bug: 1513953
Change-Id: I31aa03b131ab440d5d6e749c227837997f13464c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5299628
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Sanket Joshi <[email protected]>
Reviewed-by: Dan Clark <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1261510}
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Feb 20, 2024
…stonly

Automatic update from web-platform-tests
Add 'writingsuggestions' attribute

This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
web-platform-tests/wpt#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <daniecmicrosoft.com>
Commit-Queue: Stephanie Zhang <stephanie.zhangmicrosoft.com>
Reviewed-by: Mason Freed <masonfchromium.org>
Cr-Commit-Position: refs/heads/main{#1259389}

--

wpt-commits: dbbfe1b6f0efc3b68ce5d59bdb0c36b3dd615c86
wpt-pr: 44413

UltraBlame original commit: c25909ad3c081dfe228692bab7ecddc4c087a642
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Feb 20, 2024
…stonly

Automatic update from web-platform-tests
Add 'writingsuggestions' attribute

This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
web-platform-tests/wpt#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <[email protected]>
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1259389}

--

wpt-commits: dbbfe1b6f0efc3b68ce5d59bdb0c36b3dd615c86
wpt-pr: 44413
@stephanieyzhang

stephanieyzhang commented Feb 23, 2024 •

Copy link
Copy Markdown
Contributor

Hi all, we've recently updated these tests as part of our implementation in Chromium. The tests include coverage for disabled elements and input types where writing suggestions are not applicable. Since there hasn't been a resolute decision about what the attribute should return for these cases, we've aligned the behavior with other elements where writing suggestions are applicable. If there are any changes to this behavior in the future, I'll provide updated tests. Thanks!

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 23, 2024
…led elements and "unsupported" input types, a=testonly

Automatic update from web-platform-tests
Add 'writingsuggestions' tests for disabled elements and "unsupported"
input types

This CL adds tests for disabled elements and input types to which
writing suggestions are not applicable (eg <input type="color"/>).

The 'writingsuggestions' attribute setting/getting/reflection behavior
for these types of elements is identical to that of elements on which
writing suggestions should be generated. The User Agent is responsible
for ensuring that writing suggestions aren't applied to these types of
elements.

github.com/web-platform-tests/wpt/pull/43780#issuecomment-1936426092

Bug: 1513953
Change-Id: I31aa03b131ab440d5d6e749c227837997f13464c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5299628
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Sanket Joshi <[email protected]>
Reviewed-by: Dan Clark <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1261510}

--

wpt-commits: f6f118de16681fc1586f265c2ea7bea98fc7dec9
wpt-pr: 44613
marcoscaceres pushed a commit that referenced this pull request Feb 23, 2024
This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <[email protected]>
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1259389}
marcoscaceres pushed a commit that referenced this pull request Feb 23, 2024
input types

This CL adds tests for disabled elements and input types to which
writing suggestions are not applicable (eg <input type="color"/>).

The 'writingsuggestions' attribute setting/getting/reflection behavior
for these types of elements is identical to that of elements on which
writing suggestions should be generated. The User Agent is responsible
for ensuring that writing suggestions aren't applied to these types of
elements.

github.com//pull/43780#issuecomment-1936426092

Bug: 1513953
Change-Id: I31aa03b131ab440d5d6e749c227837997f13464c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5299628
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Sanket Joshi <[email protected]>
Reviewed-by: Dan Clark <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1261510}
@sanketj

sanketj commented Mar 13, 2024

Copy link
Copy Markdown
Contributor Author

As mentioned in this comment, tests for the writingsuggestions attribute were added as part of implementing in Chromium and those have been merged into WPT here. Abandoning this PR accordingly.

@sanketj sanketj closed this Mar 13, 2024
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…stonly

Automatic update from web-platform-tests
Add 'writingsuggestions' attribute

This CL implements the new 'writingsuggestions' attribute. We add a new
runtime flag and setter/getter methods for it.

The attribute has values "true"/"false" to allow developers to enable or
disable browser-provided writing suggestions. If the attribute is not
explicitly set on an element, it inherits its value from ancestor
elements; otherwise, it defaults to "true".

Changes were verified against wpt tests:
(note: checks for getAttribute() for missing/invalid attributes differ
to align with default behavior)
web-platform-tests/wpt#43780

Intent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/rHyRCx-hJhE

Bug: 1513953
Change-Id: I716deba02f3d8df37dd04d1363d624cf2615203c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5247315
Reviewed-by: Dan Clark <[email protected]>
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1259389}

--

wpt-commits: dbbfe1b6f0efc3b68ce5d59bdb0c36b3dd615c86
wpt-pr: 44413
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…led elements and "unsupported" input types, a=testonly

Automatic update from web-platform-tests
Add 'writingsuggestions' tests for disabled elements and "unsupported"
input types

This CL adds tests for disabled elements and input types to which
writing suggestions are not applicable (eg <input type="color"/>).

The 'writingsuggestions' attribute setting/getting/reflection behavior
for these types of elements is identical to that of elements on which
writing suggestions should be generated. The User Agent is responsible
for ensuring that writing suggestions aren't applied to these types of
elements.

github.com/web-platform-tests/wpt/pull/43780#issuecomment-1936426092

Bug: 1513953
Change-Id: I31aa03b131ab440d5d6e749c227837997f13464c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5299628
Commit-Queue: Stephanie Zhang <[email protected]>
Reviewed-by: Sanket Joshi <[email protected]>
Reviewed-by: Dan Clark <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1261510}

--

wpt-commits: f6f118de16681fc1586f265c2ea7bea98fc7dec9
wpt-pr: 44613
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants