红联Linux门户
Linux帮助

Jsdom 5.0.1发布,JavaScript的HTML解析器

发布时间:2015-04-17 21:21:52来源:红联作者:empast
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 ""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 "".

详细信息请查看更新日志。

此版本现已提供下载:

https://github.com/tmpvar/jsdom/archive/5.0.1.zip

jsdom 是 WHATWG DOM 和 HTML 标准的 JavaScript 实现,主要用于 io.js 框架。

软件详情:https://github.com/tmpvar/jsdom/blob/master/Changelog.md

来自:开源中国社区
文章评论

共有 0 条评论