html5ever
html5ever copied to clipboard
High-performance browser-grade HTML5 parser
A private function to calculate it already exists [here](https://github.com/servo/html5ever/blob/06d34f28185540ebfb4ed8e8db38ae1b10339dd9/src/sink/rcdom.rs#L81-L90), and I need access to this info to get the next/previous sibling of a Node for a project I'm working on....
People are using xhtml because they ~~expect to get a Yellow Screen of Death if code is wrong~~ _are interested in good code quality_. I followed the XML5 discussion and...
I would be great to have an example or more explicit docs that shows how to search and modify the dom - or did I just not find that?
From the checkout root: ```sh perl -We 'use strict; my $q = 40000; print ""x$q, ""x$q, ""x$q; ' | target/release/examples/html2html ``` results in `Segmentation fault (core dumped)`. Trying to use...
`src/main.rs`: ```rust use std::fs; use std::io::Cursor; use std::default::Default; extern crate html5ever; use html5ever::parse_document; use html5ever::driver::ParseOpts; use html5ever::tendril::TendrilSink; use html5ever::tree_builder::TreeBuilderOpts; use html5ever::rcdom::RcDom; fn main() { let buf = fs::read("failing").expect("Unable to read...
Hi, for issue #323 I was writing a small `TokenSink` implementation. And to be honest, it took me good half-hour, to hour for that simplistic implementation. I think what we...
This is a feature request for the ability to “correct” bad input, by stripping away parts that are not conforming to the spec. This is mostly useful for sanitizers, especially...
This method is no longer used in html5ever, and xml5ever could be modified to never depend on this method at all.
See [the HTML spec](http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#the-input-byte-stream) and the [WHATWG Encoding spec](http://encoding.spec.whatwg.org/). This also entails noticing `` and `` as we parse.
shows html5ever performing very badly against [MyHTML](https://github.com/lexborisov/myhtml), which furthermore has fewer bugs and ~~supports `document.write()`~~ html5ever supports `document.write()` in modern versions (thanks @jdm).