mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 11:12:54 +00:00
LibWeb: Remove most uses of the old HTML parser
The only remaining client of the old parser is the fragment parser used by the Element.innerHTML setter. We'll need to implement a bit more stuff in the new parser before we can switch that over.
This commit is contained in:
parent
c9d55e3b80
commit
07d976716f
Notes:
sideshowbarker
2024-07-19 05:27:42 +09:00
Author: https://github.com/awesomekling
Commit: 07d976716f
5 changed files with 16 additions and 8 deletions
|
@ -46,6 +46,13 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
RefPtr<Document> parse_html_document(const StringView& data, const URL& url, const String& encoding)
|
||||
{
|
||||
HTMLDocumentParser parser(data, encoding);
|
||||
parser.run(url);
|
||||
return parser.document();
|
||||
}
|
||||
|
||||
HTMLDocumentParser::HTMLDocumentParser(const StringView& input, const String& encoding)
|
||||
: m_tokenizer(input, encoding)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue