@@ -119,9 +119,6 @@ pub struct TreeBuilder<Handle, Sink> {
119119 /// Form element pointer.
120120 form_elem : RefCell < Option < Handle > > ,
121121
122- /// selectedcontent element pointer.
123- selectedcontent_elem : RefCell < Option < Handle > > ,
124- //§ END
125122 /// Frameset-ok flag.
126123 frameset_ok : Cell < bool > ,
127124
@@ -166,7 +163,6 @@ where
166163 active_formatting : Default :: default ( ) ,
167164 head_elem : Default :: default ( ) ,
168165 form_elem : Default :: default ( ) ,
169- selectedcontent_elem : Default :: default ( ) ,
170166 frameset_ok : Cell :: new ( true ) ,
171167 ignore_lf : Default :: default ( ) ,
172168 foster_parenting : Default :: default ( ) ,
@@ -207,7 +203,6 @@ where
207203 active_formatting : Default :: default ( ) ,
208204 head_elem : Default :: default ( ) ,
209205 form_elem : RefCell :: new ( form_elem) ,
210- selectedcontent_elem : Default :: default ( ) ,
211206 frameset_ok : Cell :: new ( true ) ,
212207 ignore_lf : Default :: default ( ) ,
213208 foster_parenting : Default :: default ( ) ,
@@ -290,10 +285,6 @@ where
290285 tracer. trace_handle ( form_elem) ;
291286 }
292287
293- if let Some ( selectedcontent_elem) = self . selectedcontent_elem . borrow ( ) . as_ref ( ) {
294- tracer. trace_handle ( selectedcontent_elem) ;
295- }
296-
297288 if let Some ( context_elem) = self . context_elem . borrow ( ) . as_ref ( ) {
298289 tracer. trace_handle ( context_elem) ;
299290 }
@@ -1360,7 +1351,7 @@ where
13601351 // FIXME: application cache selection algorithm
13611352 }
13621353
1363- // https://html.spec.whatwg.org/multipage/#create-an-element-for-the-token
1354+ /// < https://html.spec.whatwg.org/multipage/#create-an-element-for-the-token>
13641355 fn insert_element (
13651356 & self ,
13661357 push : PushFlag ,
@@ -1405,12 +1396,6 @@ where
14051396
14061397 self . insert_at ( insertion_point, AppendNode ( elem. clone ( ) ) ) ;
14071398
1408- if qname. local == local_name ! ( "selectedcontent" )
1409- && self . selectedcontent_elem . borrow ( ) . is_none ( )
1410- {
1411- * self . selectedcontent_elem . borrow_mut ( ) = Some ( elem. clone ( ) ) ;
1412- }
1413-
14141399 match push {
14151400 PushFlag :: Push => self . push ( & elem) ,
14161401 PushFlag :: NoPush => ( ) ,
@@ -1595,19 +1580,6 @@ where
15951580 self . remove_from_stack ( & node) ;
15961581 }
15971582
1598- fn maybe_clone_option_into_selectedcontent ( & self , option : & Handle ) {
1599- if let Some ( selectedcontent) = self . selectedcontent_elem . borrow ( ) . as_ref ( ) . cloned ( ) {
1600- self . clone_option_into_selectedcontent ( option, & selectedcontent) ;
1601- }
1602- }
1603-
1604- fn clone_option_into_selectedcontent ( & self , option : & Handle , selectedcontent : & Handle ) {
1605- self . sink
1606- . reparent_children ( selectedcontent, & self . sink . get_document ( ) ) ;
1607- let cloned_option = self . sink . clone_subtree ( option) ;
1608- self . sink . reparent_children ( & cloned_option, selectedcontent) ;
1609- }
1610-
16111583 //§ tree-construction
16121584 fn is_foreign ( & self , token : & Token ) -> bool {
16131585 if let Token :: Eof = * token {
0 commit comments