ladybird/Libraries/LibHTML/Parser/HTMLParser.h
Andreas Kling 635717ed0f LibHTML: Add parse_html_fragment()
This function parses a partial DOM and returns it wrapped in a document
fragment node (DocumentFragment.)

There are now two entrances into the HTML parser, one for parsing full
documents, and one for parsing fragments. Internally the both wrap the
same parsing function.
2019-11-06 20:30:39 +01:00

9 lines
255 B
C++

#pragma once
#include <AK/NonnullRefPtr.h>
#include <LibHTML/DOM/Document.h>
class DocumentFragment;
NonnullRefPtr<Document> parse_html(const StringView&, const URL& = URL());
RefPtr<DocumentFragment> parse_html_fragment(Document&, const StringView&);