mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Do not panic on navigating across documents
This commit is contained in:
parent
da45522085
commit
962e620529
3 changed files with 12 additions and 8 deletions
|
@ -298,6 +298,7 @@ impl RangeMethods for Range {
|
|||
fn CommonAncestorContainer(&self) -> DomRoot<Node> {
|
||||
self.EndContainer()
|
||||
.common_ancestor(&self.StartContainer(), ShadowIncluding::No)
|
||||
.expect("Couldn't find common ancestor container")
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-range-setstart
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue