mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 21:52:53 +00:00
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.
9 lines
255 B
C++
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&);
|