-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add compat data for input-password #2235
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, @maboa. I don't have an opinion on the subfeatures, apart from my comments—so you might want to wait for the reviews you actually requested before acting on my comments. Thank you!
html/elements/input/password.json
Outdated
}, | ||
"firefox": { | ||
"version_added": "1", | ||
"notes": "Firefox will, unlike other browsers, by default, <a href='http://stackoverflow.com/q/5985839/432681'>persist the dynamic disabled state and (if applicable) dynamic checkedness</a> of an <code><input></code> across page loads. Setting the value of the <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/input#attr-autocomplete'>autocomplete</a></code> attribute to <code>off</code> disables this feature; this works even when the <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/input#attr-autocomplete'>autocomplete</a></code> attribute to <code>off</code> attribute would normally not apply to the <code><input></code> by virtue of its <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/input#attr-type'>type</a></code>. See <a href='https://bugzil.la/654072'>bug 654072</a>." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<input>
needs to be escaped here (i.e., <input>
)
html/elements/input/password.json
Outdated
"support": { | ||
"chrome": { | ||
"version_added": "5", | ||
"notes": "In 6.0 it only worked with the HTML5 document type, validation support in 7.0 was disabled and re-enabled in 10.0." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me like this would be easier to understand as an array of entries:
- Version added 10
- Version added 5, version removed 7, with a note about Chrome 6 HTML5 doctype restriction
html/elements/input/password.json
Outdated
"support": { | ||
"chrome": { | ||
"version_added": "5", | ||
"notes": "Chrome 10 added support for <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/select'><select></a></code> element." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<select>
needs to be escaped here (i.e., <select>
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is relevant to password inputs, is it?
html/elements/input/password.json
Outdated
"support": { | ||
"chrome": { | ||
"version_added": null, | ||
"notes": "implementing something similar" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this note should be dropped, since it's not particularly informative
html/elements/input/password.json
Outdated
}, | ||
"chrome_android": { | ||
"version_added": null, | ||
"notes": "implementing something similar" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this note should be dropped
html/elements/input/password.json
Outdated
}, | ||
"status": { | ||
"experimental": false, | ||
"standard_track": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any standard to back this up, so I think it ought to be false
html/elements/input/password.json
Outdated
}, | ||
"status": { | ||
"experimental": false, | ||
"standard_track": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any standard to back this up, so I think it ought to be false
This is an odd one. The original table has couple of generic problems:
For (1) we should just omit them. For (2) I think it comes down to policy: should we include global attributes in each input type? For the other types we haven't: we've only included subfeatures where there is something interesting to say. On the one hand, completeness argues that we should include them: after all it's relevant (and possibly even true!) that, say, Chrome added support for the On the other hand, it's hard to imagine this is useful information to anyone at this point. I would vote for omitting these, but would welcome other views too :). @Elchi3 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments inline. We should remove the stuff that's not relevant to password inputs, and possibly remove the global attribute data.
html/elements/input/password.json
Outdated
}, | ||
"firefox": { | ||
"version_added": "1", | ||
"notes": "Firefox will, unlike other browsers, by default, <a href='http://stackoverflow.com/q/5985839/432681'>persist the dynamic disabled state and (if applicable) dynamic checkedness</a> of an <code><input></code> across page loads. Setting the value of the <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/input#attr-autocomplete'>autocomplete</a></code> attribute to <code>off</code> disables this feature; this works even when the <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/input#attr-autocomplete'>autocomplete</a></code> attribute to <code>off</code> attribute would normally not apply to the <code><input></code> by virtue of its <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/input#attr-type'>type</a></code>. See <a href='https://bugzil.la/654072'>bug 654072</a>." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't at all specific to password inputs. It should be attached to the data for the generic input element.
html/elements/input/password.json
Outdated
}, | ||
"ie": { | ||
"version_added": "6", | ||
"notes": " Missing for <code>type='checkbox'</code> and <code>type='radio'</code>." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't relevant to password inputs.
html/elements/input/password.json
Outdated
"support": { | ||
"chrome": { | ||
"version_added": "5", | ||
"notes": "Chrome 10 added support for <code><a href='https://developer.mozilla.org/docs/Web/HTML/Element/select'><select></a></code> element." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is relevant to password inputs, is it?
html/elements/input/password.json
Outdated
} | ||
} | ||
}, | ||
"crossed-lock": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is appropriate to include in the data for the password input. It is sort of relevant but only indirectly. It seems more like a generic browser UI decision rather than some aspect of the input itself.
html/elements/input/password.json
Outdated
}, | ||
"insecure-login": { | ||
"__compat": { | ||
"description": "Message displayed next to password field to indicate insecure login page, plus autofill disabled", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like putting documentation in the description field. This does seem more relevant to password than "crossed-lock", but perhaps it would be better for the description to be kept short and there to be text in the main doc fleshing it out? Like "Special handling of password inputs in insecure login pages"?
Not much shorter :) but I think it is better for the MDN page body to include the description of exactly what the browser does in this situation.
I agree to omitting global attributes or things not specific to input-password for now. |
@ddbeck can you fix this one up? I'm happy to re-review afterwards. |
@Elchi3 Yes, will do! I'll tag you when it's done |
@Elchi3 OK, I think this is ready for your your review now. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Mark and Daniel! 👍
Review comments addressed. We've removed non-password related things altogether
* master: (175 commits) Add Server-Timing header (mdn#2148) 40th alpha version Add compat data for input-password (mdn#2235) Add addTransceiver() method for RTCPeerConnection. (mdn#2311) Update Payments API for Chrome. (mdn#2378) Add compat data for MutationObserver (mdn#2094) Fix compat data for "let" in Chrome (mdn#1632) Safari has more formdata support now (mdn#2376) Add compat data for Window sub features from A to F (mdn#2109) Add guidelines around worker support and constructors for API subfeatures (mdn#2373) Update place-content.json (mdn#2240) Add compat data for HTMLDetailsElement (mdn#2315) Add compat data for input-month (mdn#2204) Add compat data to input-week (mdn#2230) Add compat data for input-radio (mdn#2208) Add compat data for input-tel (mdn#2226) Add compat data for input-image (mdn#2207) Add compat data for input-number (mdn#2206) Add compat data for input-hidden (mdn#2203) Add compat data for input-file (mdn#2202) ...
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password
@Elchi3 @wbamberg please let me know if I've dealt with the attributes properly, and further whether we should 'retrofit' to other input types. Thanks!