Skip to content

Commit f5ad1ec

Browse files
committed
Add bool flag to mark scripting as disabled
This flags seems to be used for parsing `<noscript>`, which shouldn't matter (if we keep it, we want to normalize it as DOM content, not as RCDATA).
1 parent 00aac0f commit f5ad1ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mod style;
3838
use html5ever::interface::Attribute;
3939
use html5ever::serialize::{serialize, SerializeOpts};
4040
use html5ever::tree_builder::{NodeOrText, TreeSink};
41-
use html5ever::{driver as html, local_name, namespace_url, ns, QualName};
41+
use html5ever::{driver as html, local_name, ns, QualName};
4242
use maplit::{hashmap, hashset};
4343
use std::sync::LazyLock;
4444
use rcdom::{Handle, NodeData, RcDom, SerializableHandle};
@@ -2208,6 +2208,7 @@ impl<'a> Builder<'a> {
22082208
html::ParseOpts::default(),
22092209
QualName::new(None, ns!(html), local_name!("div")),
22102210
vec![],
2211+
false,
22112212
)
22122213
}
22132214
}

0 commit comments

Comments
 (0)