You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use-case where I want to be able to query the tree while parsing is still ongoing (i.e., the tree (Html) is in a HtmlTreeSink). Would it be possible to add a method to borrow the Html from a HtmlTreeSink to avoid having to destroy and recreate the HtmlTreeSink?
The text was updated successfully, but these errors were encountered:
IIRC, HtmlTreeSink is just a wrapper that became necessary as html5ever stopped implementing interior mutability itself and so we had to add a RefCell layer. But I don't think anything bad would happen if we make that RefCell<Html> public so it can be accessed as e.g. sink.0.borrow().
I have a use-case where I want to be able to query the tree while parsing is still ongoing (i.e., the tree (
Html
) is in aHtmlTreeSink
). Would it be possible to add a method to borrow theHtml
from aHtmlTreeSink
to avoid having to destroy and recreate theHtmlTreeSink
?The text was updated successfully, but these errors were encountered: