Skip to content

Commit

Permalink
Ensure Node.Normalize() acts on all descendants by recursively callin…
Browse files Browse the repository at this point in the history
…g it on all non-text child nodes.
  • Loading branch information
hmac committed Apr 24, 2014
1 parent 6d89e67 commit 9e1f63e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/script/dom/node.rs
Expand Up @@ -1590,6 +1590,8 @@ impl Node {
}
}
} else {
let c = &mut child.clone();
child.get_mut().Normalize(c);
prev_text = None;
}

Expand Down

5 comments on commit 9e1f63e

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging hazz/servo/normalize = 9e1f63e into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hazz/servo/normalize = 9e1f63e merged ok, testing candidate = b193767

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = b193767

Please sign in to comment.