mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
implement valid week string
This commit is contained in:
parent
b93579a8f0
commit
54c6028033
11 changed files with 103 additions and 128 deletions
|
@ -1005,6 +1005,12 @@ impl HTMLInputElement {
|
|||
*textinput.single_line_content_mut() = "".into();
|
||||
}
|
||||
}
|
||||
InputType::Week => {
|
||||
let mut textinput = self.textinput.borrow_mut();
|
||||
if !textinput.single_line_content().is_valid_week_string() {
|
||||
*textinput.single_line_content_mut() = "".into();
|
||||
}
|
||||
}
|
||||
InputType::Color => {
|
||||
let mut textinput = self.textinput.borrow_mut();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue