Permalink
Browse files

- add level2's DOMImplementation.createDocumentType(qname, pubid, sysid)

  • Loading branch information...
aredridel committed Jul 1, 2010
1 parent 18197b4 commit e7044b84c57ebb7923f6f1ac23dd0da967897c8b
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/jsdom/level2/core.js
View
@@ -10,7 +10,10 @@ core.DOMImplementation.prototype.createDocumentType = function(/* String */ qual
/* String */ publicId,
/* String */ systemId)
{
-
+ var doctype = new core.DocumentType(this._ownerDocument, qualifiedName);
+ doctype.publicId = publicId ? publicId : '';
+ doctype.systemId = systemId ? systemId : '';
+ return doctype;
};
/**

0 comments on commit e7044b8

Please sign in to comment.