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.

Activity (RSS)

Monday, March 15 2010
113 Add support for XHR.send(Document) was updated
109 document.cookie does not exist was updated
  • nickg
    nickg commented at 2:04 PM

    Hi, thanks FroMage...

    Found the other problem... a missing comma. Gotta love javascript.

    function __cookieString__(cookies, doc) {
        var cookieString = ""   ...
  • FroMage
    • Assigned user set to Thatcher
    by FroMage at 1:44 PM

    Hi,

    This commit fixes the cookie.js inclusion in the build, but perhaps not your bug: http://github.com/FroMage/env-js/commit/37e6bb9af89f22a8e5bf6f8e051...

    It...

  • nickg
    nickg commented at 1:31 PM

    FYI -- just adding html/cookie.js to build script isn't quite enough.

    js> document.cookie
    js: "client9-env-js/dist/env.rhino.js", line 6604: uncaught JavaScrip...
  • nickg
    nickg created the ticket at 10:26 AM

    Tried reopening ticket #8. Oddly if you comment on a resolved ticket, it does not reopen it.

    $ ./tester.sh Rhino 1.7 release 2 2009 03 22
    js> load("client9-env-...

101 API to put maximum time limit on timers/intervals (patch) was updated
  • nickg
    nickg commented at 1:14 PM

    Ok this gives me some ideas on how to make global timeout really easy.

    Seem like it might be as simple as replacing

    Envjs.wait();
    

    with

    Envjs.wait(Envjs.MAXTI...
  • Steven Parkes
    Steven Parkes commented at 1:11 PM

    There's code that makes the parser sync to handle innerHTML, which can't have script tags and so can't do document.write.

    As far as I know, there's no way to se...

  • nickg
    nickg commented at 12:53 PM

    Hi again,

    I don't know if it's your domain or not, but you might find ticket 107 interesting:
    http://envjs.lighthouseapp.com/projects/21590/tickets/107-on-page...

  • Steven Parkes
    Steven Parkes commented at 12:44 PM

    There are a couple of places where there are waits to support the parser, which does some things async (in order to support document.write). Those generally cal...

  • nickg
    nickg commented at 12:24 PM

    Hi Steve,

    I think you are right about the event loop. The problem is the "README" says the caller (you), is suppose to manually call Envjs.wait() after the init...

107 On page with no javascript, 500-1000ms spent in event loop was updated
  • nickg
    nickg commented at 1:09 PM

    aha. learn something new everyday!

    CLOSE ME!

  • Steven Parkes
    Steven Parkes commented at 1:05 PM

    The parsing is not complete at the end of the parseDocument precisely because the parser is async, which is why the wait is there. The parsing is taking 480 ms.

  • nickg
    nickg commented at 9:46 AM

    No,it's env-js. (craigslist doesn't like "fake browsers", and redirects or drops connections if you use say curl).

    oddly not as bad as if you load it from a fil...

  • nickg
    nickg commented at 9:36 AM

    ignore this for now. Might be craigslist doing something odd.

  • nickg
    nickg created the ticket at 8:08 AM

    My bad -- Operator error -- thatcher, please close

    [[ original deleted ]]

111 Image is not defined was updated
  • nickg
    • Tag changed from image to htmlimageelement, image
    by nickg at 11:58 AM
  • nickg
    nickg commented at 11:57 AM

    In my envjs-like thing, I did something like the following:

    // img                                                                                             ...
  • nickg
    nickg created the ticket at 11:47 AM

    looks like Image is missing in envjs.

    Image is a weirdo in the DOM, since it actually has a constructor, and doesn't need an OwnerDocument.

    For ref, https://dev...

112 Option is not defined was created
  • nickg
    nickg created the ticket at 11:56 AM

    Like "Image", "Option" is the other weirdo in the DOM that has a constructor.

    $ ./tester.sh
    Rhino 1.7 release 2 2009 03 22
    js> Option
    js: "<stdin>", line 2: un...
110 PATCH: Allow Envjs.[before|after]ScriptLoad to capture all embeddedJS, not ju... was updated
  • nickg
    nickg commented at 11:14 AM

    wow github must have a wiki bug.

  • nickg
    nickg created the ticket at 11:12 AM

    Hola,

    I'm not quite sure how to attach a patch, but this patch is 100% backwards compatible.

    The current [before|after]ScriptLoad only allows you to intercept e...

8 document.cookie does not exist was updated
  • nickg
    • Assigned user cleared.
    by nickg at 10:25 AM

    Reopen!

    $ ./tester.sh Rhino 1.7 release 2 2009 03 22
    js> load("client9-env-js/dist/env.rhino.js");
    [ Envjs/1.6 (Rhino; U; Mac OS X x86_64 10.6.2; en-US; rv:1.7....

108 prototype.js won't load due it clobbering "Element" was created
  • nickg
    nickg created the ticket at 10:16 AM

    prototype.js has the following gem:

    (function() {                                                                                                              ...
102 Deprecate Envjs.location without regression was updated
  • nickg
    nickg commented at 9:09 AM

    word up.

    Yeah, I have no idea what happens on the other end of the pull request (like what happens when you get it or what it says). I'll always file a ticket s...

  • Thatcher
    Thatcher commented at 8:37 AM

    ps as far as best process goes for pull requests, im not sure. Right now I
    like using Lighthouse because we can actually respond using just email and
    it forces ...

  • Thatcher
    Thatcher commented at 8:31 AM

    thats awesome thanks

  • nickg
    nickg commented at 6:45 AM

    fyi -- I'm working on adding unit tests for Envjs.uri as a way of learning my way around envjs, and also see if it can't be 100% javascript. (will help in porti...

106 Incorrect state values for XMLHttpRequest was created
103 stray debug console.log in code (src/eventtarget.js) was updated
  • nickg
    nickg commented at 4:41 AM

    I attempted a github pull request which may or may not work!
    it's a tester before more interesting changes.

    --nickg

105 README has lists invalid ant build target "test" was updated
  • nickg
    nickg commented at 3:02 AM

    opps that formatting wasn't very good:

    The README file says:

    Testing:
    * Checkout qunit: "git submodule update --init"
    * run "ant test"
    
  • nickg
    nickg created the ticket at 2:59 AM

    Testing:
    * Checkout qunit: "git submodule update --init" * run "ant test"

    I don't think you need to checkout quint separately anymore. It seems bundled.

    ant tes...

104 rhino xhr does not use contentType;charset or other content sniffing was created
  • nickg
    nickg created the ticket at 2:33 AM

    In env-js/src/platform/rhino @ line 251

        xhr.responseText = java.nio.charset.Charset.forName("UTF-8").
            decode(java.nio.ByteBuffer.wrap(baos.toByteAr...
Sunday, March 14 2010
103 stray debug console.log in code (src/eventtarget.js) was created
  • nickg
    nickg created the ticket at 6:54 PM

    Looks like the trunk has an unintended debug console.log in place. All others in the source are commented out.

    Around line 132 in src/eventtarget.js

            if...
Saturday, March 13 2010
backed out async loading of external ... was committed by thatcher at 5:38 PM
Wednesday, March 10 2010
102 Deprecate Envjs.location without regression was created
  • Thatcher
    Thatcher created the ticket at 11:05 AM

    Should be alias to Envjs.uri but barked as deprecated

Resolves race condition generated by ... was committed by thatcher at 6:59 AM
101 API to put maximum time limit on timers/intervals (patch) was updated
  • Steven Parkes
    Steven Parkes commented at 6:28 AM

    I think the event loop already has this functionality, in that wait can be called with a maximum amount of time to wait. The bigger issue then is how to get the...

Tuesday, March 09 2010
updated build id, will tag next http:... was committed by thatcher at 4:15 PM
verifies document.writeln works durin... was committed by thatcher at 4:13 PM
Saturday, March 06 2010
95 implement btoa and atob was updated
  • nickg
    nickg commented at 8:01 AM

    @thatcher : not sure how github works. nickg is fine, but client9 is ok too.

    @sephr: still need to use try/catch since DOMException exists, but one can't make a...

  • Thatcher
    Thatcher commented at 7:50 AM

    nick I was going to add you as a collaborator on the env-js project. do you
    want me to add client9 or nickg ?

  • nickg
    nickg commented at 5:53 AM

    Thanks for the tips (again).

    @thatcher: go for it. I'm not working any tickets.

    @all don't be scared that I just forked envjs. Its just so I have aplace to dump...

  • sephr
    sephr commented at 5:47 AM

    Also, I should mention that all errors (it's practically a standard) must have a message and name property. So if you find yourself ever absolutely needing to u...

  • sephr
    sephr commented at 5:42 AM

    nickg: For making your own error classes, please piggyback on Error or the appropriate error type, so magic metadata can propagate. new Error magically includes...

4 earlier changes…
  • Thatcher
    Thatcher commented at 5:36 AM

    looking forward to it, the code was perfect as is, though i did add a var
    base64 = {} to keep the base64 name hidden inside the window closure. I
    didnt add test...

  • nickg
    nickg commented at 5:20 AM

    thanks!

    Minus some possible hacks to make this a jquery plugin, I don't see this changing much. I more-or-less wrote this just for env-js. So I'm happy to accep...

  • Thatcher
    Thatcher commented at 5:03 AM

    This would work with Envjs. nice work. I'm going to add it now as a static
    source file, but moving forward I might add a build step to get the latest
    from your ...

  • nickg
    nickg commented at 4:58 AM

    And it's sorted out.

    • SyntaxError is used (and unit tested)
    • A DOMException is thrown in other cases. I believe you allow (new DOMException(5);), but other envir...
Added window.atob and window.btoa (th... was committed by thatcher at 5:29 AM