mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Refactor the translatable
attribute lightly (#30430)
This commit is contained in:
parent
dff6df8912
commit
6f0cba0855
4 changed files with 4 additions and 13 deletions
|
@ -516,8 +516,7 @@ impl HTMLElementMethods for HTMLElement {
|
|||
// https://html.spec.whatwg.org/multipage/#dom-translate
|
||||
fn SetTranslate(&self, yesno: bool) {
|
||||
self.upcast::<Element>().set_string_attribute(
|
||||
// TODO change this to local_name! when html5ever updates
|
||||
&LocalName::from("translate"),
|
||||
&html5ever::local_name!("translate"),
|
||||
match yesno {
|
||||
true => DOMString::from("yes"),
|
||||
false => DOMString::from("no"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue