mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Plumb content encoding into the new HTML parser
We still don't handle non-ASCII input correctly, but at least now we'll convert e.g ISO-8859-1 to UTF-8 before starting to tokenize. This patch also makes "view source" work with the new parser. :^)
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 06:02:35 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5e53c45113b
@@ -61,7 +61,7 @@ namespace Web {
|
||||
|
||||
class HTMLDocumentParser {
|
||||
public:
|
||||
explicit HTMLDocumentParser(const StringView& input);
|
||||
HTMLDocumentParser(const StringView& input, const String& encoding);
|
||||
~HTMLDocumentParser();
|
||||
|
||||
void run(const URL&);
|
||||
|
||||
Reference in New Issue
Block a user