diff options
author | Ennui Langeweile <85590273+EnnuiL@users.noreply.github.com> | 2023-09-26 02:05:37 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 05:05:37 +0000 |
commit | 6f0cba0855f05850d4071cb92c323350f1eaa751 (patch) | |
tree | 8e76c1cc590a39d24771df5e746f7c3d9382a082 /components/script/dom/htmlelement.rs | |
parent | dff6df89125330c53b9e080f2da0552807bb9442 (diff) | |
download | servo-6f0cba0855f05850d4071cb92c323350f1eaa751.tar.gz servo-6f0cba0855f05850d4071cb92c323350f1eaa751.zip |
Refactor the `translatable` attribute lightly (#30430)
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index 03560848965..01ba77278cd 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -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"), |