mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibWeb+Browser: Use the new HTML parser by default
You can still run the old parser with "br -O", but the new one is good enough to be the default parser now. We'll fix issues as we go and eventually remove the old one completely. :^)
This commit is contained in:
parent
517cf65c99
commit
8766e49a7c
5 changed files with 13 additions and 14 deletions
|
@ -45,7 +45,7 @@ namespace Browser {
|
|||
|
||||
static const char* bookmarks_filename = "/home/anon/bookmarks.json";
|
||||
String g_home_url;
|
||||
bool g_use_new_html_parser = false;
|
||||
bool g_use_old_html_parser = false;
|
||||
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ int main(int argc, char** argv)
|
|||
const char* specified_url = nullptr;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(Browser::g_use_new_html_parser, "Use new HTML parser", "new-parser", 'n');
|
||||
args_parser.add_option(Browser::g_use_old_html_parser, "Use old HTML parser", "old-parser", 'O');
|
||||
args_parser.add_positional_argument(specified_url, "URL to open", "url", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue