Re: set_dirty is using unspecified behaviour in html/semantics/forms/constraints/support/validator.js (#923)

Sorry for reply so late.
The spec says: Each input element has a boolean dirty value flag.  When it is true, the element is said to have a dirty value. The dirty value flag must be initially set to false when the element is created, and must be set to true whenever the user interacts with the control in a way that changes the value.

I think it means that the dirty value must be set by user interaction,  not by script.

We can find the 'user interaction' in the document interface. (http://www.w3.org/TR/html5/dom.html#the-document-object) 
Those methods should simulate the user interaction although there is no explicit words or sentences in the spec.


View on GitHub: https://github.com/w3c/web-platform-tests/issues/923#issuecomment-41518975

Received on Monday, 28 April 2014 02:44:00 UTC