@@ -190,7 +190,7 @@ where
190190 if !self . in_html_elem_named( local_name!( "template" ) ) {
191191 self . unexpected( & tag) ;
192192 } else {
193- self . generate_implied_end ( thorough_implied_end) ;
193+ self . generate_implied_end_tags ( thorough_implied_end) ;
194194 self . expect_to_close( local_name!( "template" ) ) ;
195195 self . clear_active_formatting_to_marker( ) ;
196196 self . template_modes. borrow_mut( ) . pop( ) ;
@@ -287,7 +287,7 @@ where
287287 Token :: NullCharacter => self . unexpected( & token) ,
288288
289289 Token :: Characters ( _, text) => {
290- self . reconstruct_formatting ( ) ;
290+ self . reconstruct_active_formatting_elements ( ) ;
291291 if any_not_whitespace( & text) {
292292 self . frameset_ok. set( false ) ;
293293 }
@@ -464,10 +464,10 @@ where
464464 tag @ <button> => {
465465 if self . in_scope_named( default_scope, local_name!( "button" ) ) {
466466 self . sink. parse_error( Borrowed ( "nested buttons" ) ) ;
467- self . generate_implied_end ( cursory_implied_end) ;
467+ self . generate_implied_end_tags ( cursory_implied_end) ;
468468 self . pop_until_named( local_name!( "button" ) ) ;
469469 }
470- self . reconstruct_formatting ( ) ;
470+ self . reconstruct_active_formatting_elements ( ) ;
471471 self . insert_element_for( tag) ;
472472 self . frameset_ok. set( false ) ;
473473 ProcessResult :: Done
@@ -480,7 +480,7 @@ where
480480 if !self . in_scope_named( default_scope, tag. name. clone( ) ) {
481481 self . unexpected( & tag) ;
482482 } else {
483- self . generate_implied_end ( cursory_implied_end) ;
483+ self . generate_implied_end_tags ( cursory_implied_end) ;
484484 self . expect_to_close( tag. name) ;
485485 }
486486 ProcessResult :: Done
@@ -500,7 +500,7 @@ where
500500 self . sink. parse_error( Borrowed ( "Form element not in scope on </form>" ) ) ;
501501 return ProcessResult :: Done ;
502502 }
503- self . generate_implied_end ( cursory_implied_end) ;
503+ self . generate_implied_end_tags ( cursory_implied_end) ;
504504 let current = self . current_node( ) . clone( ) ;
505505 self . remove_from_stack( & node) ;
506506 if !self . sink. same_node( & current, & node) {
@@ -511,7 +511,7 @@ where
511511 self . sink. parse_error( Borrowed ( "Form element not in scope on </form>" ) ) ;
512512 return ProcessResult :: Done ;
513513 }
514- self . generate_implied_end ( cursory_implied_end) ;
514+ self . generate_implied_end_tags ( cursory_implied_end) ;
515515 if !self . current_node_named( local_name!( "form" ) ) {
516516 self . sink. parse_error( Borrowed ( "Bad open element on </form>" ) ) ;
517517 }
@@ -546,7 +546,7 @@ where
546546
547547 tag @ </h1> </h2> </h3> </h4> </h5> </h6> => {
548548 if self . in_scope( default_scope, |n| self . elem_in( & n, heading_tag) ) {
549- self . generate_implied_end ( cursory_implied_end) ;
549+ self . generate_implied_end_tags ( cursory_implied_end) ;
550550 if !self . current_node_named( tag. name) {
551551 self . sink. parse_error( Borrowed ( "Closing wrong heading tag" ) ) ;
552552 }
@@ -559,23 +559,23 @@ where
559559
560560 tag @ <a> => {
561561 self . handle_misnested_a_tags( & tag) ;
562- self . reconstruct_formatting ( ) ;
562+ self . reconstruct_active_formatting_elements ( ) ;
563563 self . create_formatting_element_for( tag) ;
564564 ProcessResult :: Done
565565 }
566566
567567 tag @ <b> <big> <code> <em> <font> <i> <s> <small> <strike> <strong> <tt> <u> => {
568- self . reconstruct_formatting ( ) ;
568+ self . reconstruct_active_formatting_elements ( ) ;
569569 self . create_formatting_element_for( tag) ;
570570 ProcessResult :: Done
571571 }
572572
573573 tag @ <nobr> => {
574- self . reconstruct_formatting ( ) ;
574+ self . reconstruct_active_formatting_elements ( ) ;
575575 if self . in_scope_named( default_scope, local_name!( "nobr" ) ) {
576576 self . sink. parse_error( Borrowed ( "Nested <nobr>" ) ) ;
577577 self . adoption_agency( local_name!( "nobr" ) ) ;
578- self . reconstruct_formatting ( ) ;
578+ self . reconstruct_active_formatting_elements ( ) ;
579579 }
580580 self . create_formatting_element_for( tag) ;
581581 ProcessResult :: Done
@@ -588,7 +588,7 @@ where
588588 }
589589
590590 tag @ <applet> <marquee> <object> => {
591- self . reconstruct_formatting ( ) ;
591+ self . reconstruct_active_formatting_elements ( ) ;
592592 self . insert_element_for( tag) ;
593593 self . active_formatting. borrow_mut( ) . push( FormatEntry :: Marker ) ;
594594 self . frameset_ok. set( false ) ;
@@ -599,7 +599,7 @@ where
599599 if !self . in_scope_named( default_scope, tag. name. clone( ) ) {
600600 self . unexpected( & tag) ;
601601 } else {
602- self . generate_implied_end ( cursory_implied_end) ;
602+ self . generate_implied_end_tags ( cursory_implied_end) ;
603603 self . expect_to_close( tag. name) ;
604604 self . clear_active_formatting_to_marker( ) ;
605605 }
@@ -630,7 +630,7 @@ where
630630 local_name!( "input" ) => self . is_type_hidden( & tag) ,
631631 _ => false ,
632632 } ;
633- self . reconstruct_formatting ( ) ;
633+ self . reconstruct_active_formatting_elements ( ) ;
634634 self . insert_and_pop_element_for( tag) ;
635635 if !keep_frameset_ok {
636636 self . frameset_ok. set( false ) ;
@@ -666,7 +666,7 @@ where
666666
667667 tag @ <xmp> => {
668668 self . close_p_element_in_button_scope( ) ;
669- self . reconstruct_formatting ( ) ;
669+ self . reconstruct_active_formatting_elements ( ) ;
670670 self . frameset_ok. set( false ) ;
671671 self . parse_raw_data( tag, Rawtext )
672672 }
@@ -683,7 +683,7 @@ where
683683 // <noscript> handled in wildcard case below
684684
685685 tag @ <select> => {
686- self . reconstruct_formatting ( ) ;
686+ self . reconstruct_active_formatting_elements ( ) ;
687687 self . insert_element_for( tag) ;
688688 self . frameset_ok. set( false ) ;
689689 // NB: mode == InBody but possibly self.mode != mode, if
@@ -700,14 +700,14 @@ where
700700 if self . current_node_named( local_name!( "option" ) ) {
701701 self . pop( ) ;
702702 }
703- self . reconstruct_formatting ( ) ;
703+ self . reconstruct_active_formatting_elements ( ) ;
704704 self . insert_element_for( tag) ;
705705 ProcessResult :: Done
706706 }
707707
708708 tag @ <rb> <rtc> => {
709709 if self . in_scope_named( default_scope, local_name!( "ruby" ) ) {
710- self . generate_implied_end ( cursory_implied_end) ;
710+ self . generate_implied_end_tags ( cursory_implied_end) ;
711711 }
712712 if !self . current_node_named( local_name!( "ruby" ) ) {
713713 self . unexpected( & tag) ;
@@ -741,7 +741,7 @@ where
741741 if self . opts. scripting_enabled && tag. name == local_name!( "noscript" ) {
742742 self . parse_raw_data( tag, Rawtext )
743743 } else {
744- self . reconstruct_formatting ( ) ;
744+ self . reconstruct_active_formatting_elements ( ) ;
745745 self . insert_element_for( tag) ;
746746 ProcessResult :: Done
747747 }
@@ -924,7 +924,7 @@ where
924924 tag @ <caption> <col> <colgroup> <tbody> <td> <tfoot>
925925 <th> <thead> <tr> </table> </caption> => {
926926 if self . in_scope_named( table_scope, local_name!( "caption" ) ) {
927- self . generate_implied_end ( cursory_implied_end) ;
927+ self . generate_implied_end_tags ( cursory_implied_end) ;
928928 self . expect_to_close( local_name!( "caption" ) ) ;
929929 self . clear_active_formatting_to_marker( ) ;
930930 match tag {
@@ -1087,7 +1087,7 @@ where
10871087 InsertionMode :: InCell => match_token ! ( token {
10881088 tag @ </td> </th> => {
10891089 if self . in_scope_named( table_scope, tag. name. clone( ) ) {
1090- self . generate_implied_end ( cursory_implied_end) ;
1090+ self . generate_implied_end_tags ( cursory_implied_end) ;
10911091 self . expect_to_close( tag. name) ;
10921092 self . clear_active_formatting_to_marker( ) ;
10931093 self . mode. set( InsertionMode :: InRow ) ;
0 commit comments