mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
PR review
Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
parent
cc4233a008
commit
5e586b75bb
1 changed files with 2 additions and 2 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue