mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Fix step 6 of Range::DeleteContents
This commit is contained in:
parent
d5ce8f308f
commit
0ac931a43e
2 changed files with 1 additions and 16 deletions
|
@ -774,7 +774,7 @@ impl RangeMethods for Range {
|
|||
let mut reference_node = Root::from_ref(start_node);
|
||||
while let Some(parent) = reference_node.GetParentNode() {
|
||||
if parent.is_inclusive_ancestor_of(end_node) {
|
||||
return (parent, reference_node.index())
|
||||
return (parent, reference_node.index() + 1)
|
||||
}
|
||||
reference_node = parent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue