在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:servo/html5ever开源软件地址:https://github.com/servo/html5ever开源编程语言:Rust 96.0%开源软件介绍:html5everhtml5ever is an HTML parser developed as part of the Servo project. It can parse and serialize HTML according to the WHATWG specs (aka "HTML5"). However, there are some differences in the actual behavior currently, most of which are documented in the bug tracker. html5ever passes all tokenizer tests from html5lib-tests, with most tree builder tests outside of the unimplemented features. The goal is to pass all html5lib tests, while also providing all hooks needed by a production web browser, e.g. Note that the HTML syntax is very similar to XML. For correct parsing of XHTML, use an XML parser (That said, many XHTML documents in the wild are serialized in an HTML-compatible form). html5ever is written in Rust, therefore it avoids the notorious security problems that come along with using C. Being built with Rust also makes the library come with the high-grade performance you would expect from an html parser written in C. html5ever is basically a C html parser, but without needing a garbage collector or other heavy runtime processes. Getting started in RustAdd html5ever as a dependency in your [dependencies]
html5ever = "*" You should also take a look at Getting started in other languagesBindings for Python and other languages are much desired. Working on html5everTo fetch the test suite, you need to run
Run Detailshtml5ever uses callbacks to manipulate the DOM, therefore it does not provide any DOM tree representation. html5ever exclusively uses UTF-8 to represent strings. In the future it will support other document encodings (and UCS-2 The code is cross-referenced with the WHATWG syntax spec, and eventually we will have a way to present code and spec side-by-side. html5ever builds against the official stable releases of Rust, though some optimizations are only supported on nightly releases. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论