Displaying 1 result from an estimated 1 matches for "newnode1".
Did you mean:
newnode
2006 Nov 23
0
W3C Range specification conceptually flawed?
...t, 9);
// as you can see in Firebug console we selected ''bar'' and ''baz''
console.log(''range1: '' + range1.toString() + '' range2:'' +
range2.toString());
// let''s surround ''bar'' with a bold tag....
var newNode1 = document.createElement("b");
range1.surroundContents(newNode1);
// after surrounding range1, range2 doesn''t anymore contain ''baz'' !!!
console.log(''range1: '' + range1.toString() + '' range2:'' +
range2.toString());
</scrip...