Skip to content

Commit

Permalink
web: allow enabling js execution
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwuelker committed Aug 10, 2024
1 parent 94fb9e6 commit 388c2ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ perfect_hash = { workspace = true }
image = { workspace = true }
resourceloader = { workspace = true }
html-treebuilding-match = { workspace = true }
settings = { workspace = true }

[build-dependencies]
buildutils = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/web/src/html/treebuilding/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use crate::{

use html_treebuilding_match::html_treebuilding_match;
use resourceloader::{PendingLoad, RESOURCE_LOADER};
use settings::SETTINGS;
use sl_std::iter::IteratorExtensions;
use url::URL;

Expand Down Expand Up @@ -178,7 +179,7 @@ impl<P: ParseErrorHandler> Parser<P> {
form: None,
frameset_ok: FramesetOkFlag::default(),
active_formatting_elements: ActiveFormattingElements::default(),
execute_script: false,
execute_script: !SETTINGS.disable_javascript,
pending_table_character_tokens: vec![],
is_foster_parenting_enabled: false,
done: false,
Expand Down

0 comments on commit 388c2ed

Please sign in to comment.