Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Aug 24, 2014
  1. @jinjinyun
  2. Merge pull request #89 from raphj/patch-1

    convert attribute's value to string in setAttributeNS
  3. Merge pull request #78 from isnotgood/master

    TypeError when Document is created with DocumentType
    thanks for your work
  4. Merge pull request #96 from matt-deboer/master

    Added '*' NS support for getElementsByTagNameNS
    thanks for your jobs
Commits on Aug 19, 2014
  1. @matt-deboer
Commits on May 4, 2014
  1. @raphj

    convert attribute's value to string in setAttributeNS

    raphj authored
    If setAttributeNS is used with non-string attribute values, we can be in trouble when we e.g. try to serialize the XML :
    TypeError: Object 11900 has no method 'replace'
        at serializeToString ([...]/node_modules/xmldom/dom.js:952:49)
        at serializeToString ([...]/xmldom/dom.js:923:4)
        at serializeToString ([...]/node_modules/xmldom/dom.js:947:4)
        at XMLSerializer.serializeToString ([...]/node_modules/xmldom/dom.js:907:2)
        at Document.Node.toString ([...]/node_modules/xmldom/dom.js:911:33)
    This is already done in setAttribute.
Commits on Mar 4, 2014
  1. @isnotgood

    TypeError when Document is created with DocumentType

    isnotgood authored
    Example of error:
    var xmldom = require('xmldom');
    var impl = new xmldom.DOMImplementation();
    var doctype = impl.createDocumentType('svg', '-//W3C//DTD SVG 1.1//EN', '');
    var doc = impl.createDocument('';, 'svg', doctype);
    console.log((new xmldom.XMLSerializer).serializeToString(doc));
                    cs[i++] = child;
    TypeError: Cannot set property '0' of null
        at _onUpdateChild (/Users/ing/Sites/xmldom/dom.js:462:13)
        at _insertBefore (/Users/ing/Sites/xmldom/dom.js:530:2)
        at Document.insertBefore (/Users/ing/Sites/xmldom/dom.js:580:10)
        at Document.Node.appendChild (/Users/ing/Sites/xmldom/dom.js:334:15)
        at Object.DOMImplementation.createDocument (/Users/ing/Sites/xmldom/dom.js:272:8)
        at Object.<anonymous> (/Users/ing/Sites/sprites/src/lib/test.js:5:16)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
Commits on Jan 28, 2014
  1. 0.1.19 released

  2. merged some issues

  3. Merge pull request #74 from skypanther/issue68

    Fix issue #68, infinite loop on unclosed comment
Commits on Jan 23, 2014
  1. @skypanther
Commits on Jan 22, 2014
  1. @skypanther

    Added testcase

    skypanther authored
  2. @skypanther
Commits on Jan 17, 2014
  1. @bigeasy

    Release 0.1.18.

    bigeasy authored
    Closes #73.
  2. @bigeasy

    Attempt to fix shipping key.

    bigeasy authored
  3. @bigeasy
Commits on Jan 11, 2014
  1. @bigeasy

    Merge pull request #70 from kethinov/master

    bigeasy authored
    Merge empty parse from string.
  2. @bigeasy
Commits on Dec 16, 2013
  1. add default ns support

Commits on Dec 9, 2013
  1. @Frost


    Frost authored
    Tests and changelog aren't needed when publishing to npm. It's just a waste of space and bandwidth.
Commits on Oct 22, 2013
  1. @kethinov

    parseFromString now renders entirely plain text documents as textNode

    kethinov authored
    This pull request resolves the issue where parseFromString throws error
    when given plain text to parse.
    Summary of issue:
    This example code throws the following error: `source code out of
    document root`
    var xmldom = require('xmldom'),
        DOMParser = xmldom.DOMParser,
        XMLSerializer = new xmldom.XMLSerializer(),
        string = 'plain text',
        doc = new DOMParser().parseFromString(string, 'text/html'),
        s = XMLSerializer,
        str = s.serializeToString(doc);
    The resulting document given is this:
    { doctype: null,
      implementation: { _features: {} },
      childNodes: {},
      documentURI: undefined }
    It should return a single textNode childNode instead of an empty set of
  2. @kethinov

    Merge pull request #1 from jindw/master

    kethinov authored
    updating fork
Commits on Sep 10, 2013
  1. Create LICENSE

  2. Update package.json

    add kit licenses link
Commits on Jun 22, 2013
  1. undo last commit

    Yaron Naveh authored
  2. enable option to ignore white space on parsing

    Yaron Naveh authored
  3. Merge remote-tracking branch 'upstream/master'

    Yaron Naveh authored
Commits on May 4, 2013
  1. @bigeasy
  2. @bigeasy

    Release 0.0.16.

    bigeasy authored
  3. @bigeasy

    Update change log.

    bigeasy authored
  4. @bigeasy

    Merge pull request #57 from puzrin/master

    bigeasy authored
    Unicode characters greater than two bytes.
Commits on May 3, 2013
  1. @puzrin
Commits on Apr 13, 2013
  1. @bigeasy
  2. @bigeasy

    Quiet `t/cover`.

    bigeasy authored
    Closes #53.
Something went wrong with that request. Please try again.