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| {