Skip to content

Fix backwards test of element's dirty value flag. - #12606

Merged
annevk merged 1 commit into
whatwg:mainfrom
dbaron:dirty-value-backwards
Jun 28, 2026
Merged

Fix backwards test of element's dirty value flag.#12606
annevk merged 1 commit into
whatwg:mainfrom
dbaron:dirty-value-backwards

Conversation

@dbaron

@dbaron dbaron commented Jun 22, 2026

Copy link
Copy Markdown
Member

This comes from #12065, whose motivation is in #12057. I believe this test of the dirty value flag is backwards. I think it was originally the right way (to fix #12057) around but was inadvertently inverted in b213624

cc @saschanaz


/input.html ( diff )

This comes from whatwg#12065, whose motivation is in whatwg#12057.  I believe this
test of the dirty value flag is backwards.  I think it was originally
the right way (to fix whatwg#12057) around but was inadvertently inverted in
whatwg@b213624

@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.

Oh wow, thanks!

@annevk

annevk commented Jun 23, 2026

Copy link
Copy Markdown
Member

This looks correct to me, but I'll let @saschanaz confirm just in case.

@saschanaz
saschanaz self-requested a review June 23, 2026 07:23

@saschanaz saschanaz 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.

Thanks!

Comment thread source
<ol>
<li><p>If <var>element</var>'s <span data-x="concept-fe-dirty">dirty value flag</span> is
true, then return the result of <span
false, then return the result of <span

@saschanaz saschanaz Jun 27, 2026

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.

Hmm. But I think the original intent of putting true here is to make it "if true then X, otherwise Y"... Should we reverse the order while we are at it?

@annevk
annevk merged commit 4adc122 into whatwg:main Jun 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

"update a color well control color" works based on the input value concept while WPT expects the value attribute

3 participants