@@ -1377,7 +1377,7 @@ where
1377
1377
self . insert_element ( Push , ns ! ( html) , name, vec ! [ ] )
1378
1378
}
1379
1379
1380
- // https://html.spec.whatwg.org/multipage/parsing.html#insert-an-element-at-the-adjusted-insertion-location
1380
+ /// https://html.spec.whatwg.org/multipage/parsing.html#insert-an-element-at-the-adjusted-insertion-location
1381
1381
fn insert_foreign_element (
1382
1382
& self ,
1383
1383
tag : Tag ,
@@ -1398,8 +1398,8 @@ where
1398
1398
}
1399
1399
//§ END
1400
1400
1401
- // https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead
1402
- // A start tag whose tag name is "template"
1401
+ /// https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead
1402
+ /// A start tag whose tag name is "template"
1403
1403
fn should_attach_declarative_shadow ( & self , tag : & Tag ) -> bool {
1404
1404
let adjusted_insertion_location = self . appropriate_place_for_insertion ( None ) ;
1405
1405
@@ -1414,7 +1414,7 @@ where
1414
1414
// template start tag's shadowrootmode is not in the none state
1415
1415
let is_shadow_root_mode = tag. attrs . iter ( ) . any ( |attr| {
1416
1416
attr. name . local == local_name ! ( "shadowrootmode" )
1417
- && ( attr. value . to_string ( ) == * "open" || attr. value . to_string ( ) == * "closed" )
1417
+ && ( attr. value . as_ref ( ) == "open" || attr. value . as_ref ( ) == "closed" )
1418
1418
} ) ;
1419
1419
1420
1420
// Check if intended_parent's document allows declarative shadow roots
@@ -1438,8 +1438,8 @@ where
1438
1438
is_shadow_root_mode && allow_declarative_shadow_roots && adjusted_current_node_not_topmost
1439
1439
}
1440
1440
1441
- // https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead
1442
- // A start tag whose tag name is "template"
1441
+ /// https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead
1442
+ /// A start tag whose tag name is "template"
1443
1443
fn attach_declarative_shadow (
1444
1444
& self ,
1445
1445
tag : & Tag ,
0 commit comments