A question about Range#insertNode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Anne,

Step 7 of <https://dom.spec.whatwg.org/#concept-range-insert> reads

> If /range/’s start node is a Text node, split it with offset 
> /range/’s start offset, set /referenceNode/ to the result, and set
> /parent/ to /referenceNode/’s parent.

In this case, /referenceNode/ has been set to /range/’s start node
(step 3), and /parent/ has been set to /referenceNode/’s parent (step
5). The split algorithm returns a node with the same parent as its
argument, so I believe that this step doesn't actually change /parent/.

Could you confirm and maybe add a note to the spec here?

Thanks
Ms2ger
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJVm654AAoJEOXgvIL+s8n26b8H+gKfVZ6mHIaL6LcK5kvhJ/Cj
RRE64Q3YAy9mmgm/OW6fR2hLFhbbQaa8HJ86eYOBNQF73C4MT6MIC+1PMc31sPY1
JSeQTcjkgSJXSW4N2hTymT5bNyF2C/03uzJcrxUA9mVBiWJsWEUTqDGU2k4zlC2D
/vr/cF112VR64ttJz8Ru0FSR0m5faGDL6hkcWl6Hi5tE7RCcHPZzo4InlpGzZ5zP
C27563mv01Ia8FUHbEqVmr9HU1DDcZs12j55kSv6jE3fku4aAqbbJ5XDkqlD3TTQ
c0tHKnZ8gIwJOJG9Cb510eKrcSoflACNAPov/gMulpSJLkdVURHeLwj12H2K18k=
=hsv/
-----END PGP SIGNATURE-----

Received on Tuesday, 7 July 2015 10:49:11 UTC