html5ever
html5ever copied to clipboard
High-performance browser-grade HTML5 parser
It would be good to have some comments in all examples in `html5ever/examples/` to show what the examples do and what each part does. This would be great for someone...
e.g. the open elements or active formatting elements. We search these when looking for elements in various scopes, and #77 adds more. We could track open elements with a bitvector...
Is there a reason that we can't implement `TreeSink` using Atomic `Tendril`s? I'm trying to use an HTML library built on top of html5ever in a future and it seems...
I'm working on a project that requires manipulating DOM to simplify HTML. One example of a transform is removing all nested `` to the innermost `` element. My first attempt...
[The current naming is bad](https://docs.rs/html5ever/0.25.1/html5ever/#constants): > ## Constants > > ATOM_LOCALNAME_ > ATOM_LOCALNAME__2A > ATOM_LOCALNAME__6B > … > ATOM_LOCALNAME__73_74_72_69_6B_65_74_68_72_6F_75_67_68_2D_74_68_69_63_6B_6E_65_73_73 This would be *a lot* better: > ## Constants > >...
We can use something like libsyntax's [`Span`](http://doc.rust-lang.org/syntax/codemap/struct.Span.html) and [`Spanned`](http://doc.rust-lang.org/syntax/codemap/struct.Spanned.html) types to track positions in the input stream. The tokenizer will remember its current position and the position at certain events,...
I’ve been running into an issue where large documents (few hundred MiB) being parsed cause massive amounts of memory usage that can slow or even crash (drastically crash, sometimes causing...
1. html5ever v0.22.5 is unaware of the `decoding` attribute: https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-decoding 2. `QualName::new(None, ns!(), local_name!("decoding"))` doesn't recognize the name. Is there another way to create the attribute?
I can't find release notes. I can't find a changelog. I can't find what has changed in the API, so I'm struggling to update my code. > 122 | use...