Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

createRange doesn't exist

#78

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 :-)

Reported by siannopollo · November 14th, 2009 @ 05:41 PM

State: open
Milestone: 1.2.x
Assigned to: Thatcher Thatcher

Activity

  1. Thatcher
    Thatcher
    • 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

    February 3rd, 2010 @ 04:48 PM

  2. Thatcher
    Thatcher
    • 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.

    February 12th, 2010 @ 07:44 PM

  3. Roland Swingler
    Roland Swingler

    This is also necessary to support ExtJS as a library

    March 26th, 2010 @ 05:35 AM

  4. Roland Swingler
    Roland Swingler

    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).

    March 28th, 2010 @ 06:10 AM

  5. Thatcher
    Thatcher

    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.

    March 28th, 2010 @ 09:50 AM

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.