-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
<input type="month">
- IDL attributes
: missing valueAsDate
and valueAsNumer
#31590
Comments
The table is "Supported common attributes" so are these supported on any browser on the input element, and are they common to many types of input elements? If not, then they wouldn't appear here. More generally, if you look at the browser compatibility they aren't listed: htps://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#browser_compatibility - this is a strong indication that they aren't supported on any of our tracked browsers. If you think they are, then can you please provide a test case that demonstrate said support, and we would move this to browser compatibility data repo to proceed. |
@hamishwillee To test, input this in your browser inspector console: let input = document.createElement("input");
input.type = "month";
input.id = "test";
document.body.appendChild(input);
let test = document.getElementById("test").valueAsDate;
console.log(test); // or just `test` in the browser console It outputs |
BCD team - the two HTML input values |
Actually, this is a case of looking at the wrong page/table. The IDL values are tracked on the API page, not the HTML element page. If you look at the HTMLInputElement API page, you'll see both |
@queengooborg yes, but not on the specific |
You're looking on the wrong page. You want to look at https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#browser_compatibility instead, which describes the interface and its features. We don't document IDL attributes in the HTML data; we only document HTML attributes there. |
Why are there present in every other input elements, then? |
Oh, wait- you're not talking about the browser compatibility section... Hold on, let me transfer this issue back to the content repo. |
@hamishwillee This was not a BCD issue. The reporter is referring to the " row within the Technical Summary section of the page: BCD would not list these under the HTML element data because they are API attributes, not HTML element attributes, so they would not appear in the browser compatibility tables on these pages. |
Indeed, sorry for not clarifying earlier, I had no idea of what "BCD" meant |
Curses. Thanks all - I was confused by this. @Malix-off - would you like to add those attributes? |
Np! |
@hamishwillee see #31639 |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/month
What specific section or headline is this issue about?
Technical Summary
What information was incorrect, unhelpful, or incomplete?
About
<input type="month">
:IDL attributes
- missingvalueAsDate
andvalueAsNumer
What did you expect to see?
About
<input type="month">
:IDL attributes
- missingvalueAsDate
andvalueAsNumer
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/html/element/input/month
The text was updated successfully, but these errors were encountered: