Match newly-clarified spec on textarea defaultValue/value/child text content

Issue #12518762 • Assigned to Travis L.

Details

Author
Domenic D.
Created
Jun 27, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In https://github.com/whatwg/html/issues/2752 and https://github.com/whatwg/html/issues/2750 it was discovered that various aspects of the textarea spec were confusing and did not match browser behavior (which was generally not interoperable).

In https://github.com/whatwg/html/pull/2766 we settled on a reasonable set of semantics that matched most browsers in most aspects and was simple to implement. The main changes are:

The child text content change steps for textarea elements must, if the element’s dirty value flag is false, set the element’s raw value to its child text content.

The defaultValue IDL attribute must, on getting, return the element’s child text content. On setting, it must act as the setter for the element’s textContent IDL attribute.

These are tested by the tests at http://w3c-test.org/submissions/6256/html/semantics/forms/the-textarea-element/value-defaultValue-textContent.html (which will eventually end up at http://w3c-test.org/html/semantics/forms/the-textarea-element/value-defaultValue-textContent.html when https://github.com/w3c/web-platform-tests/pull/6256 is merged).

Edge seems to have a very broken defaultValue getter, causing almost all of the tests to fail.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Bogdan B.”

      Changed Assigned To from “Bogdan B.” to “Travis L.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in