Re: Query on DOM range methods

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CADnb78hou9dhBBdRy7mdZXXgTNww3c065PK_5SWf8ex+Ojho6w@mail.gmail.com>
On Fri, Jan 31, 2014 at 9:45 AM, bhanukrushna rout
<[email protected]> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.