Open source code of the HTML5 parser library Gumbo on Google

Source: Internet
Author: User

Google has opened Gumbo source code, which is an HTML Parsing Library written in C. The library complies with HTML parsing algorithm standards and has passed all html5lib-0.95 tests and has been tested on the 2.5 billion web pages of Google indexing.

According to the description page of the project, Google released Gumbo to provide developers with a lightweight HTML Parser library without external dependencies and can be called in most languages. This library can be included in applications such as Web page validators, static analyzer, template language, and refactoring tools.

Google believes that Gumbo is "robust and flexible for low-standard input", But ABI may change in the future, therefore, it is not recommended to maintain pointers to some internal data structures of Gumbo. However, this API is considered quite stable. Gumbo 1.0 will be released in the near future. Prior to this, the project team will be waiting for developers' opinions.

The following are some features that will be added in the future: 1. Support for recent HTML5 specification changes to support template tags 2. Support for fragment parsing 3. full-featured error reports 4. Binding in other languages
Before the HTML5 parsing algorithm is standardized, Each browser chooses how to mark the input page and how to render the page. Although HTML 4 provides a detailed description of valid tags, it does not indicate what the browser should do when the input is invalid. Therefore, 95% of Web pages in the world cannot be verified by the W3C reference validators. Using tools like Gumbo to verify HTML pages ensures that pages are properly parsed and rendered in all major browsers.

Google Open Sources Gumbo, An HTML5 Parsing Library

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.