mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibWeb+Browser: Remove old HTML parser :^)
The new parser is now used everywhere and it's working pretty well!
This commit is contained in:
parent
6c783dbf62
commit
6293d1a13c
Notes:
sideshowbarker
2024-07-19 05:22:23 +09:00
Author: https://github.com/awesomekling
Commit: 6293d1a13c
9 changed files with 1 additions and 560 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <LibGemini/Document.h>
|
||||
#include <LibGfx/ImageDecoder.h>
|
||||
#include <LibMarkdown/Document.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/ElementFactory.h>
|
||||
#include <LibWeb/DOM/Text.h>
|
||||
#include <LibWeb/Frame/Frame.h>
|
||||
|
@ -35,7 +36,6 @@
|
|||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <LibWeb/Page.h>
|
||||
#include <LibWeb/Parser/HTMLDocumentParser.h>
|
||||
#include <LibWeb/Parser/HTMLParser.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
|
@ -130,8 +130,6 @@ RefPtr<Document> FrameLoader::create_document_from_mime_type(const ByteBuffer& d
|
|||
if (mime_type == "text/gemini")
|
||||
return create_gemini_document(data, url);
|
||||
if (mime_type == "text/html") {
|
||||
if (m_use_old_parser)
|
||||
return parse_html_document(data, url, encoding);
|
||||
HTMLDocumentParser parser(data, encoding);
|
||||
parser.run(url);
|
||||
return parser.document();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue