Jsdom 5.0.1 发布,此版本主要有以下更新: Fixed document.cookie setter to no longer ignore null; instead it correctly sets a cookie of "null". (Chrome is not compliant to the spec in this regard.) Fixed documents created with parsingMode: "xml" to no longer get "<html><head></head><body></body></html>"automatically inserted when calling jsdom.jsdom() with no arguments. Fixed the innerHTML setter to no longer ignore undefined; instead it correctly sets the innerHTML to "undefined". Fixed document.write to throw for XML documents as per the spec. Fixed document.write to accept more than one argument (they get concatenated). Fixed document.write("") to no longer try to write "<html><head></head><body></body></html>". 详细信息请查看更新日志。 此版本现已提供下载: https://github.com/tmpvar/jsdom/archive/5.0.1.zip jsdom 是 WHATWG DOM 和 HTML 标准的 JavaScript 实现,主要用于 io.js 框架。 Jsdom 5.0.1 发布, JavaScript 的 HTML 解析器下载地址