search for: surroundcont

Displaying 1 result from an estimated 1 matches for "surroundcont".

2006 Nov 23
0
W3C Range specification conceptually flawed?
...''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()); </script> </body> </html> On section 2.12 of the s...