Skip to content

More <input> clean-ups#2786

Merged
TimothyGu merged 8 commits intojsdom:masterfrom
TimothyGu:input2
Jan 14, 2020
Merged

More <input> clean-ups#2786
TimothyGu merged 8 commits intojsdom:masterfrom
TimothyGu:input2

Conversation

@TimothyGu
Copy link
Copy Markdown
Member

@TimothyGu TimothyGu commented Jan 9, 2020

Most of these changes are not observable and for consistency benefits only. Two more substantive changes are implementing <input> value rewrite during type change, and proper validation support for <input type=time min max> when min > max.

Tests for reversed range are in web-platform-tests/wpt#21103, which is included in this roll.

@TimothyGu TimothyGu force-pushed the input2 branch 2 times, most recently from fd0f507 to b9d02ab Compare January 9, 2020 08:12
@TimothyGu TimothyGu marked this pull request as ready for review January 9, 2020 08:12
Copy link
Copy Markdown
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM with potential test improvements. I'll leave it up to you whether to merge or continue iterating; I don't want to slow down all this awesome work.

With the exception of the removal of "datetime" <input> type state,
these changes do not appear to be observable (or testable).
Even though this is unobservable, when we refer to the <input>'s value
we should always use input._value, to avoid calling the complex value
getter.
Restore to the original HTML definition of nonexistent for anything
other than type=week.
Also make sure to use ASCII lowercase instead of Unicode lowercase
during comparison.
@TimothyGu TimothyGu merged commit e2dbad8 into jsdom:master Jan 14, 2020
@TimothyGu TimothyGu deleted the input2 branch January 14, 2020 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants