We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291125a commit 7e8df6dCopy full SHA for 7e8df6d
src/modules/htmldom/mod.rs
@@ -407,8 +407,8 @@ fn init_dom_parser_proxy(realm: &QuickJsRealmAdapter) -> Result<QuickJsValueAdap
407
))
408
} else {
409
let doc = if args[0].is_string() {
410
- let html = args[0].to_str()?;
411
- parse_from_string(html)
+ let html = args[0].to_string()?;
+ parse_from_string(html.as_str())
412
413
let bytes = realm.copy_typed_array_buffer(&args[0])?;
414
let html = String::from_utf8_lossy(bytes.as_slice());
0 commit comments