W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2017

Re: Inconsistencies with .value and .defaultValue properties

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 3 Jan 2017 11:07:48 +0100
Message-ID: <CADnb78iao=5Ly-A=divfFtg3TjUMBxLRehkdd=KxeNd8odFWqg@mail.gmail.com>
To: John Horvath <jhorvath@maxetatech.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
On Fri, Dec 30, 2016 at 4:21 PM, John Horvath <jhorvath@maxetatech.com> wrote:
> I’m unclear of why the handling of .value and ..defaultValue are
> inconsistent across various form elements, and think it might be worth
> standardizing their functionality to prevent confusion.

They are standardized in https://html.spec.whatwg.org/multipage/ and
are interoperable across browsers as far as I know. From the
StackOverflow questions it seems the confusion mostly stems from the
defaultValue IDL attribute being linked to the value content
attribute? That just happens to be the design of that API.

Received on Tuesday, 3 January 2017 10:08:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 20 February 2017 16:51:54 UTC