Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 20, 2015
  1. @domenic

    Correctly throw DOMExceptions for invalid selectors

    domenic committed
    Previously we would just let nwmatcher throw Error instances. Now we correctly convert them to DOMException SyntaxErrors. In combination with dperini/nwmatcher@3595c7d, fixes #1214.
  2. @Joris-van-der-Wel @domenic

    Use the "request" module instead of "browser-request"

    Joris-van-der-Wel committed with domenic
    Currently, fetching files within the browser is broken because browser-request does not support `request.jar()`, also we are passing arguments to request() in such a way that it is not compatible with browser-request.
    The "request" library seems to support browsers just fine nowadays
Commits on Nov 19, 2015
  1. @Sebmaster

    Enable more web-platform-tests

    Sebmaster committed
  2. @Sebmaster
  3. @Sebmaster

    Modify MutationEvent test to ensure constructor throws

    Sebmaster committed
    MutationEvent has no public constructor, so this should always throw.
Commits on Nov 14, 2015
  1. @domenic
Commits on Oct 22, 2015
  1. @Sebmaster @domenic

    Fixes eslint blank lines error

    Sebmaster committed with domenic
Commits on Oct 18, 2015
  1. @domenic

    Update web-platform-tests

    domenic committed
  2. @domenic

    Test fixes

    domenic committed
  3. @domenic

    Fix various bugs in isEqualNode, and cover it with tests

    domenic committed
    - Doctypes would always compare as equal
    - Any elements with attributes would cause a crash (fixes #1264)
    - Also enforced the required three arguments to document.implementation.createDocumentType
Commits on Oct 17, 2015
  1. @domenic
  2. @domenic

    Run web-platform-tests from if hosts are not set up

    domenic committed
    Also, no need to fall back to for to-upstream tests.
  3. @nicolashenry @domenic

    Re-do XMLHttpRequest implementation and related stuff

    nicolashenry committed with domenic
    - Includes Blob, File, FileList, FileReader, FormData, ProgressEvent, XMLHttpRequestUpload, and XMLHttpRequestEventTarget implementations
    - Uses request for requests
    - Uses spawnSync to accomplish synchronous XHR
    - Adds some request management options (pool, agentOptions, userAgent, and abortable resource loads)
    - Fixes some issues with the EventTarget and Event implementations
    - Web platform tests now run using the official Python runner (which does require hostfile customization)
  4. @rickychien @domenic
  5. @Sebmaster @domenic
  6. @domenic

    Fix #1157: document.styleSheets now tracks removals correctly

    Martin Naumann committed with domenic
    Also removes no-op mutation event listener.
Commits on Oct 7, 2015
  1. @Sebmaster

    Implement loose cookie parsing

    Sebmaster committed
    This enables correct execution of code like `document.cookie = 'foo'`.
Commits on Oct 2, 2015
  1. @domenic

    Allow un-upstreamed web platform tests

    domenic committed
    This adds a new directory, to-upstream, which has a parallel hierarchy to the web platform test suite. All test files in it will be run.
    It demonstrates this process by porting some tests from our attributes tests.
Commits on Sep 27, 2015
  1. @domenic

    Move { omitJsdomErrors } option to sendTo

    domenic committed
    It makes more sense for this to be an option to virtual console's sendTo, than for it to be part of the constructor.
  2. @domenic

    Change web platform test structure a bit

    domenic committed
    - Move w3c/domparsing to misc/domparsing; the intent was never to segregate specs by standards organization
    - Rename w3c/ to web-platform-tests/ for accuracy
    - Update web-platform-tests/index.js to be a bit DRYer, which should hopefully ease updating
    - Update to latest web-platform-tests revision
Commits on Sep 26, 2015
  1. @domenic
  2. @domenic
  3. @domenic
  4. @domenic

    Test cleanups

    domenic committed
    - Moving tests out of jsdom/index
    - Modernizing test files as I go, using arrow functions and const and so on
    - Trying to standardize on jsdom.jsdom(), not jsdom()
    - Remove now-unused ci.js
Commits on Sep 19, 2015
  1. @domenic

    Allow config.{cookie, referrer} not nested under document

    domenic committed
    Previously jsdom.env required these to be nested under a document config option, whereas jsdom.jsdom required them to be there directly. This was confusing; see #1228.
    Now they are allowed in both locations for both functions, although we only document the top-level version.
    Fixes #1228. Part of #1128.
Commits on Sep 14, 2015
  1. @domenic

    Fix lint error

    domenic committed
  2. @darobin @domenic

    Make NodeList iterable

    darobin committed with domenic
Commits on Sep 13, 2015
  1. @domenic

    Re-do getElementsByClassName

    domenic committed
    Fixes #1232 plus a bunch of other edge cases around whitespace and such. Also returns a HTMLCollection now instead of a NodeList, and memoizes the result, as is explicitly allowed in the spec.
    The change from _clearMemoizedQueries() to _modified() in the base _attrChanged was necessary for the newly-introduced web platform tests test to pass, and likely fixes other subtle bugs people may have encountered.
Commits on Sep 12, 2015
  1. @domenic
  2. @domenic
Commits on Sep 11, 2015
  1. @domenic

    Add jsdom.nodeLocation

    domenic committed
    Fixes #1194, pending further parse5 updates to make it even better.
  2. @mzgol @domenic
  3. @domenic

    Re-do NodeList and HTMLCollection

    domenic committed
    - Removes all non-public properties and methods, in the process fixing #1224.
    - Removes NodeList's no-op length setter, fixing #859. It was only used so that we could call Array.prototype.push on it; instead we manually copy over nodes.
    - Removes their public constructors.
    - Removes the inheritance relationship between them, which is incorrect.
    - Removes HTMLOptionsCollection, which was just an alias for HTMLCollection. We'll use HTMLCollection instead, for now.
Commits on Aug 30, 2015
  1. @domenic
  2. @jeffcarp @domenic

    Add window.atob and window.btoa

    jeffcarp committed with domenic
    Fixes #1184.
Something went wrong with that request. Please try again.