servo/html5ever

the trait `TreeSink` is not implemented for `RcDom` with html5ever 0.26

b0bleet opened this issue · 3 comments

Repro code:

let opts = ParseOpts {
    tree_builder: TreeBuilderOpts {
        drop_doctype: true,
        ..Default::default()
    },
    ..Default::default()
};
let rcdom_def = RcDom::default();
parse_document(rcdom_def, opts);

Error:

the trait `TreeSink` is not implemented for `RcDom`

But that worked well when I was downgrading html5ever to 0.25.

jdm commented

This happens because rcdom is not a crate that we publish anymore: https://github.com/servo/html5ever/tree/master/rcdom#readme . You can fork it if you want to continue using it.

I did try it with markup5ever_rcdom crate already.

jdm commented

The fork only works if it depends on the same html5ever/markup5ever crate versions.