#78 open
siannopollo

createRange doesn't exist

Reported by siannopollo | 2009-11-14 17:41:23 UTC | in 1.2.x

I've been using Blue Ridge, which uses env.rhino.js, and the document object doesn't have the createRange method on it. This is probably only a problem with Prototype, as I don't think jQuery makes use of the createRange function. But currently Prototype 1.6.1 uses it in Element#replace. I'm thinking it should be there, but I may be wrong :-)

Comments and changes to this ticket

  • Thatcher

    Thatcher 2010-02-03 16:48:35 UTC

    • State changed from “new” to “open”
    • Assigned user set to “Thatcher”
    • Milestone set to “1.2.x”

    I looked into the DOM specs and I think we can provide the implementation. Is there a small test you know of that would help verify we did it?

    Thatcher

  • Thatcher

    Thatcher 2010-02-12 19:44:22 UTC

    • Tag changed from “createrange, document, dom” to “createrange, document, dom, prototype, range”

    I did stub this out and did some reading in the dom specs to get a feel for it since I had never used this directly before. I should have this done soon and will add the tests as I go.

  • Roland Swingler

    Roland Swingler 2010-03-26 05:35:14 UTC

    This is also necessary to support ExtJS as a library

  • Roland Swingler

    Roland Swingler 2010-03-28 06:10:59 UTC

    I should have this done soon and will add the tests as I go.

    Was wondering if you have stuff done for this, just not committed to github? I'd be happy to do some work to fix this, but I don't want to waste effort if you've already got a real implementation underway (I've seen the stubs in the source).

  • Thatcher

    Thatcher 2010-03-28 09:50:00 UTC

    I didnt get much past the research phase to be honest. It's a complex DOM
    interface and because I hadnt used it directly much it took me a couple
    reads of the spec. I'm actually circling back on some back logs for other
    projects before I'll have a chance to work on Envjs so if you have the
    cycles go for it.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

Pages