mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:05:08 +00:00
LibWeb: Load X(HT)ML documents and transform them into HTML DOM
This commit is contained in:
parent
c1649e3372
commit
5a0123fd2f
9 changed files with 347 additions and 29 deletions
|
@ -24,10 +24,18 @@ public:
|
|||
bool is_ready_to_be_parser_executed() const { return m_ready_to_be_parser_executed; }
|
||||
bool failed_to_load() const { return m_failed_to_load; }
|
||||
|
||||
void set_parser_document(Badge<HTMLParser>, DOM::Document&);
|
||||
void set_non_blocking(Badge<HTMLParser>, bool);
|
||||
void set_already_started(Badge<HTMLParser>, bool b) { m_already_started = b; }
|
||||
void prepare_script(Badge<HTMLParser>) { prepare_script(); }
|
||||
template<OneOf<XMLDocumentBuilder, HTMLParser> T>
|
||||
void set_parser_document(Badge<T>, DOM::Document& document) { m_parser_document = document; }
|
||||
|
||||
template<OneOf<XMLDocumentBuilder, HTMLParser> T>
|
||||
void set_non_blocking(Badge<T>, bool b) { m_non_blocking = b; }
|
||||
|
||||
template<OneOf<XMLDocumentBuilder, HTMLParser> T>
|
||||
void set_already_started(Badge<T>, bool b) { m_already_started = b; }
|
||||
|
||||
template<OneOf<XMLDocumentBuilder, HTMLParser> T>
|
||||
void prepare_script(Badge<T>) { prepare_script(); }
|
||||
|
||||
void execute_script();
|
||||
|
||||
bool is_parser_inserted() const { return !!m_parser_document; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue