当前位置

网站首页> 程序设计 > 程序资讯 > 软件更新资讯 > 浏览文章

Jsdom 5.2.0 发布, JavaScript 的 HTML 解析器

作者:小梦 来源: 网络 时间: 2024-07-30 阅读:

开源中国的 IT 公司开源软件整理计划介绍

Jsdom 5.2.0 发布,此版本主要有以下更新:

  • Implemented much of the ParentNode mixin (Joris-van-der-Wel):
          Moved children from Node to ParentNode, i.e., made it available on Document, DocumentFragment, and Element, but not other types of nodes.
          Made children a HTMLCollection instead of a NodeList.
          Implemented firstElementChild, lastElementChild, and childElementCount.

  • Implemented the outerHTML setter. (Joris-van-der-Wel)

  • Fixed the outerHTML getter for <select> and <form>. (Joris-van-der-Wel)

  • Fixed various issues with window-less documents, so that they no longer give incorrect results or blow up in strange ways. You can create such documents with e.g. document.implementation.createHTMLDocument(). (Joris-van-der-Wel)

  • Fixed relative stylesheet resolution when using @import. (dbo)

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

此版本现已提供下载:

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

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

热点阅读

网友最爱