Use map_or and fix manifest

This commit is contained in:
Dmitry Kolupaev 2020-02-22 13:28:22 +03:00
parent ab2aeb6d97
commit 25c5a4c045
4 changed files with 25 additions and 9 deletions

View file

@ -774,6 +774,7 @@ impl HTMLElement {
.count() as u32
}
// https://html.spec.whatwg.org/multipage/#the-directionality.
// returns Some if can infer direction by itself or from child nodes
// returns None if requires to go up to parent
pub fn directionality(&self) -> Option<String> {