Re: Query on DOM range methods

On Fri, Jan 31, 2014 at 9:45 AM, bhanukrushna rout
<bhanu_nitrkl12@yahoo.co.in> wrote:
> Now, I am confused if a particular spec revision is complete in itself or
> its a change in addition to the previous revisions.
> Please help me understand it and let me know if element node to be allowed
> as a root container.

Yes it could be.

var r = new Range()
var e = document.createElement("test")
var ec = e.appendChild(document.createElement("test"))
r.setStartBefore(ec)
alert(r.startContainer == e)

If you mean something else you'll have to be more clear.


-- 
http://annevankesteren.nl/

Received on Tuesday, 4 February 2014 13:15:02 UTC