aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorEnnui Langeweile <85590273+EnnuiL@users.noreply.github.com>2023-09-26 02:05:37 -0300
committerGitHub <noreply@github.com>2023-09-26 05:05:37 +0000
commit6f0cba0855f05850d4071cb92c323350f1eaa751 (patch)
tree8e76c1cc590a39d24771df5e746f7c3d9382a082 /components/script/dom/htmlelement.rs
parentdff6df89125330c53b9e080f2da0552807bb9442 (diff)
downloadservo-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.rs3
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"),