| OLD | NEW |
| 1 description( | 1 description( |
| 2 "This test checks an orphan text node cannot be surrounded by the range. (bu
g31684)" | 2 "This test checks an orphan text node cannot be surrounded by the range. (bu
g31684)" |
| 3 ); | 3 ); |
| 4 | 4 |
| 5 var range = document.createRange(); | 5 var range = document.createRange(); |
| 6 var text = document.createTextNode('hello'); | 6 var text = document.createTextNode('hello'); |
| 7 var element = document.createElement("div"); | 7 var element = document.createElement("div"); |
| 8 range.selectNodeContents(text); | 8 range.selectNodeContents(text); |
| 9 | 9 |
| 10 shouldThrow("range.surroundContents(element)", '"Error: HierarchyRequestError: D
OM Exception 3"'); | 10 shouldThrow("range.surroundContents(element)", '"HierarchyRequestError: A Node w
as inserted somewhere it doesn\'t belong."'); |
| OLD | NEW |