File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
html5ever/src/tree_builder Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -890,10 +890,8 @@ where
890890 if self . in_scope_named ( default_scope, local_name ! ( "option" ) ) {
891891 self . sink . parse_error ( Borrowed ( "nested options" ) ) ;
892892 }
893- } else {
894- if self . current_node_named ( local_name ! ( "option" ) ) {
895- self . pop ( ) ;
896- }
893+ } else if self . current_node_named ( local_name ! ( "option" ) ) {
894+ self . pop ( ) ;
897895 }
898896
899897 self . reconstruct_active_formatting_elements ( ) ;
@@ -909,10 +907,8 @@ where
909907 {
910908 self . sink . parse_error ( Borrowed ( "nested options" ) ) ;
911909 }
912- } else {
913- if self . current_node_named ( local_name ! ( "option" ) ) {
914- self . pop ( ) ;
915- }
910+ } else if self . current_node_named ( local_name ! ( "option" ) ) {
911+ self . pop ( ) ;
916912 }
917913
918914 self . reconstruct_active_formatting_elements ( ) ;
You can’t perform that action at this time.
0 commit comments