diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index f1c60627082..7c4a1a626cd 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -85,32 +85,76 @@ const DEFAULT_SUBMIT_VALUE: &str = "Submit";
const DEFAULT_RESET_VALUE: &str = "Reset";
const PASSWORD_REPLACEMENT_CHAR: char = '●';
+///
#[derive(Clone, Copy, Default, JSTraceable, PartialEq)]
#[allow(dead_code)]
#[derive(MallocSizeOf)]
pub(crate) enum InputType {
+ ///
Button,
+
+ ///
Checkbox,
+
+ ///
Color,
+
+ ///
Date,
+
+ ///
DatetimeLocal,
+
+ ///
Email,
+
+ ///
File,
+
+ ///
Hidden,
+
+ ///
Image,
+
+ ///
Month,
+
+ ///
Number,
+
+ ///
Password,
+
+ ///
Radio,
+
+ ///
Range,
+
+ ///
Reset,
+
+ ///
Search,
+
+ ///
Submit,
+
+ ///
Tel,
+
+ ///
#[default]
Text,
+
+ ///
Time,
+
+ ///
Url,
+
+ ///
Week,
}
@@ -242,6 +286,8 @@ enum StepDirection {
pub(crate) struct HTMLInputElement {
htmlelement: HTMLElement,
input_type: Cell,
+
+ ///
checked_changed: Cell,
placeholder: DomRefCell,
size: Cell,
@@ -1801,7 +1847,6 @@ impl HTMLInputElement {
}
self.upcast::().dirty(NodeDamage::OtherNodeDamage);
- //TODO: dispatch change event
}
// https://html.spec.whatwg.org/multipage/#concept-fe-mutable