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

Make dirname apply to hidden/tel/url/email inputs #9490

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Jul 5, 2023

Fixes #9225

(See WHATWG Working Mode: Changes for more details.)


/browsing-the-web.html ( diff )
/form-control-infrastructure.html ( diff )
/input.html ( diff )

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Looks good modulo nit. WebKit is supportive.

data-x="attr-input-type-text">Text</span>, <span data-x="attr-input-type-search">Search</span>,
<span data-x="attr-input-type-url">URL</span>, <span
data-x="attr-input-type-tel">Telephone</span>, or <span
data-x="attr-input-type-email">Email</span> state, if the persisted state includes the
Copy link
Member

Choose a reason for hiding this comment

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

Can you make the order of the states here match the order you used above? (That order matches the table of contents order.)

@vinhill
Copy link
Contributor

vinhill commented Jul 10, 2023

A test is located in html/semantics/forms/attributes-common-to-form-controls/dirname-only-if-applies.html and the necessary change can be seen here

@vinhill
Copy link
Contributor

vinhill commented Jul 11, 2023

@annevk zcorpan is out of office. Can you address the nit and I'll file the implementation bugs, MDN issue?

@vinhill
Copy link
Contributor

vinhill commented Jul 24, 2023

@annevk annevk merged commit 627176c into main Jul 24, 2023
@annevk annevk deleted the zcorpan/dirname-more branch July 24, 2023 08:55
bsmth added a commit to mdn/content that referenced this pull request Aug 10, 2023
* Make dirname apply to hidden/tel/url/email inputs.

See whatwg/html#9490

* Apply nit

Co-authored-by: Chris Mills <[email protected]>

* Update files/en-us/web/html/element/input/index.md

Co-authored-by: Brian Thomas Smith <[email protected]>

* Link to dirname page

---------

Co-authored-by: Chris Mills <[email protected]>
Co-authored-by: Brian Thomas Smith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Dirname should work with more input types
4 participants