mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Move dirname collection to input
This commit is contained in:
parent
ef49f2e0eb
commit
cb34e5c887
5 changed files with 43 additions and 37 deletions
|
@ -1473,11 +1473,25 @@ impl HTMLInputElement {
|
|||
}
|
||||
|
||||
// Step 5.12
|
||||
vec![FormDatum {
|
||||
let mut result = vec![FormDatum {
|
||||
ty: ty.clone(),
|
||||
name: name,
|
||||
value: FormDatumValue::String(self.Value()),
|
||||
}]
|
||||
}];
|
||||
|
||||
// 4.10.18.2
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submitting-element-directionality:-the-dirname-attribute
|
||||
let dirname: DOMString = self.DirName();
|
||||
let directionality = DOMString::from(self.directionality("auto"));
|
||||
if !dirname.is_empty() {
|
||||
result.push(FormDatum {
|
||||
ty: ty.clone(),
|
||||
name: dirname.clone(),
|
||||
value: FormDatumValue::String(directionality),
|
||||
});
|
||||
}
|
||||
|
||||
result
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#radio-button-group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue