From 5e586b75bb157549f65f7aae7083e205c245209b Mon Sep 17 00:00:00 2001 From: Ville Lindholm Date: Thu, 12 Dec 2024 21:05:49 +0200 Subject: [PATCH] PR review Signed-off-by: Ville Lindholm --- components/script/dom/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 1961a12d0c7..eb1a603d8c8 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -1306,8 +1306,8 @@ impl Node { .map(|data| data.element_data.borrow().styles.primary().clone()) } - // https://html.spec.whatwg.org/multipage/#language - pub fn get_lang(&self) -> Option { + /// + pub(crate) fn get_lang(&self) -> Option { self.inclusive_ancestors(ShadowIncluding::Yes) .filter_map(|node| { node.downcast::().and_then(|el| {