Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define :enabled by reference to "actually disabled" #1672

Merged
merged 5 commits into from
Aug 17, 2016

Conversation

gibson042
Copy link
Contributor

It was not obvious that the list of conditions for :enabled and :disabled are inverses of each other. This change preserves the repetition of element names, although even that could be pulled into a new "disableable element" concept.

<code>optgroup</code>, <code>option</code>, <code>menuitem</code>, or <code>fieldset</code> element
that is not <span data-x="concept-element-disabled">actually disabled</span>.</p>

<p class="note"><code>a</code> elements, <code>area</code> elements, and <code>link</code> elements
Copy link
Member

Choose a reason for hiding this comment

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

I think it's best to just remove this, instead of moving it to a note. I think it was probably from a time when a/area/link had disabled attributes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough. Should I omit the note entirely, or just revert 7df2ba0?

Copy link
Member

Choose a reason for hiding this comment

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

Omitting entirely sounds best to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@domenic domenic added clarification Standard could be clearer topic: forms labels Aug 15, 2016
@domenic
Copy link
Member

domenic commented Aug 16, 2016

Oh, sorry, I forgot, could you add yourself to the acknowledgments? Ready to merge otherwise.

@gibson042
Copy link
Contributor Author

Good to go!

@domenic domenic merged commit 8819855 into whatwg:master Aug 17, 2016
@domenic
Copy link
Member

domenic commented Aug 17, 2016

Thanks! Great to have you contributing :)

@annevk
Copy link
Member

annevk commented Aug 17, 2016

"This definition is used to determine what elements can be focused and which elements match the :disabled pseudo-class." should perhaps be updated as well?

I wonder why this wasn't done from the start. There's no subtle difference?

@annevk
Copy link
Member

annevk commented Aug 17, 2016

49900ac did the initial cleanup and 7b7cee2 did the commenting out. I guess when commenting that out it was not realized it became the inverse.

annevk added a commit that referenced this pull request Aug 18, 2016
PR #1672 made :enabled use the actually disabled definition. This fixes
the note below actually disabled to reflect that change.
@annevk
Copy link
Member

annevk commented Aug 18, 2016

I created a PR to update the note.

zcorpan pushed a commit that referenced this pull request Aug 18, 2016
PR #1672 made :enabled use the actually disabled definition. This fixes
the note below actually disabled to reflect that change.
alice pushed a commit to alice/html that referenced this pull request Jan 8, 2019
PR whatwg#1672 made :enabled use the actually disabled definition. This fixes
the note below actually disabled to reflect that change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer topic: forms
Development

Successfully merging this pull request may close these issues.

3 participants