mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:25:07 +00:00
LibHTML: Make parse_html_document() return a RefPtr
Parsing might not always succeed, so let's have a way to signal errors.
This commit is contained in:
parent
f60c46ceb7
commit
ac2cc7d78f
2 changed files with 4 additions and 4 deletions
|
@ -5,5 +5,5 @@
|
|||
|
||||
class DocumentFragment;
|
||||
|
||||
NonnullRefPtr<Document> parse_html_document(const StringView&, const URL& = URL());
|
||||
RefPtr<Document> parse_html_document(const StringView&, const URL& = URL());
|
||||
RefPtr<DocumentFragment> parse_html_fragment(Document&, const StringView&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue