-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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 document for HTMLInputElement.type #32021
Conversation
Preview URLs Flaws (2)URL:
(comment last updated: 2024-01-31 14:28:23) |
|
||
{{ApiRef("HTML DOM")}} | ||
|
||
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour and rendering type of the {{HTMLElement("input")}} 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.
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour and rendering type of the {{HTMLElement("input")}} element. | |
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates the behavior and type of the {{HTMLElement("input")}} element, that is, if it is an input for text, a number, a date… |
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.
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour and rendering type of the {{HTMLElement("input")}} element. | |
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour type of the {{HTMLElement("input")}} element, that is, if it is an input for text, a number, a date, etc. |
|
||
## Value | ||
|
||
A string representing type values. Default value is a `text`. |
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.
The default value is for the attribute, not for the property.
A string representing type values. Default value is a `text`. | |
A string representing the type. |
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 wrote this because some properties written with default values.
But you are right, defaults are for attributes.
|
||
A string representing type values. Default value is a `text`. | ||
|
||
It's possible values are listed in [input types](/en-US/docs/Web/HTML/Element/input#input_types). |
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's possible values are listed in [input types](/en-US/docs/Web/HTML/Element/input#input_types). | |
Its possible values are listed in the attribute's [input types](/en-US/docs/Web/HTML/Element/input#input_types) section. |
|
||
## See also | ||
|
||
- {{domxref("HTMLTextAreaElement.type")}} property that returns the string "textarea". |
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.
- {{domxref("HTMLTextAreaElement.type")}} property that returns the string "textarea". | |
- {{domxref("HTMLTextAreaElement.type")}} property |
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.
small rephrasing
|
||
{{ApiRef("HTML DOM")}} | ||
|
||
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour and rendering type of the {{HTMLElement("input")}} 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.
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour and rendering type of the {{HTMLElement("input")}} element. | |
The **`type`** property of the {{domxref("HTMLInputElement")}} interface is a string that indicates behaviour type of the {{HTMLElement("input")}} element, that is, if it is an input for text, a number, a date, etc. |
|
||
## Value | ||
|
||
A string representing type values. Default value is a `text`. |
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 wrote this because some properties written with default values.
But you are right, defaults are for attributes.
Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
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 PR add documentation for HTMLInputElement.type property.
It is part of mdn/mdn#520
Resource
type