PR review

Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
Ville Lindholm 2024-12-12 21:05:49 +02:00
parent cc4233a008
commit 5e586b75bb
No known key found for this signature in database

View file

@ -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<String> {
/// <https://html.spec.whatwg.org/multipage/#language>
pub(crate) fn get_lang(&self) -> Option<String> {
self.inclusive_ancestors(ShadowIncluding::Yes)
.filter_map(|node| {
node.downcast::<Element>().and_then(|el| {