mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:45:07 +00:00
LibWeb+Browser: Add ability to run Browser with the new HTML parser
You can now pass "-n" to the browser to use the new HTML parser. It's not turned on by default since it's still very immature, but this is a huge step towards bringing it into maturity. :^)
This commit is contained in:
parent
08e2907210
commit
2cb50f6750
4 changed files with 30 additions and 4 deletions
|
@ -59,6 +59,7 @@
|
|||
|
||||
namespace Browser {
|
||||
|
||||
extern bool g_use_new_html_parser;
|
||||
extern String g_home_url;
|
||||
|
||||
Tab::Tab()
|
||||
|
@ -70,6 +71,8 @@ Tab::Tab()
|
|||
auto& toolbar = m_toolbar_container->add<GUI::ToolBar>();
|
||||
m_html_widget = widget.add<Web::HtmlView>();
|
||||
|
||||
m_html_widget->set_use_new_parser(g_use_new_html_parser);
|
||||
|
||||
m_go_back_action = GUI::CommonActions::make_go_back_action([this](auto&) {
|
||||
m_history.go_back();
|
||||
update_actions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue