mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Auto merge of #9134 - iszak:issue-9132, r=nox
Fixes https://github.com/servo/servo/issues/9132 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9134) <!-- Reviewable:end -->
This commit is contained in:
commit
06d84e6e4b
1 changed files with 8 additions and 8 deletions
|
@ -570,14 +570,14 @@ impl VirtualMethods for HTMLInputElement {
|
||||||
&atom!("type") => {
|
&atom!("type") => {
|
||||||
match mutation {
|
match mutation {
|
||||||
AttributeMutation::Set(_) => {
|
AttributeMutation::Set(_) => {
|
||||||
let value = match &**attr.value() {
|
let value = match attr.value().as_atom() {
|
||||||
"button" => InputType::InputButton,
|
&atom!("button") => InputType::InputButton,
|
||||||
"submit" => InputType::InputSubmit,
|
&atom!("submit") => InputType::InputSubmit,
|
||||||
"reset" => InputType::InputReset,
|
&atom!("reset") => InputType::InputReset,
|
||||||
"file" => InputType::InputFile,
|
&atom!("file") => InputType::InputFile,
|
||||||
"radio" => InputType::InputRadio,
|
&atom!("radio") => InputType::InputRadio,
|
||||||
"checkbox" => InputType::InputCheckbox,
|
&atom!("checkbox") => InputType::InputCheckbox,
|
||||||
"password" => InputType::InputPassword,
|
&atom!("password") => InputType::InputPassword,
|
||||||
_ => InputType::InputText,
|
_ => InputType::InputText,
|
||||||
};
|
};
|
||||||
self.input_type.set(value);
|
self.input_type.set(value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue