File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
html5ever/src/tree_builder Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,9 @@ impl<Handle, Sink> TreeBuilderActions<Handle>
276276 self . active_formatting. remove( fmt_elem_index) ;
277277 }
278278 ) ;
279+ if fmt_elem_stack_index == 0 {
280+ return
281+ }
279282
280283 // 7.
281284 if !self . in_scope ( default_scope, |n| self . sink . same_node ( & n, & fmt_elem) ) {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl<T> LimitedVec<T> {
5959 pub fn new ( limit : usize ) -> Self {
6060 LimitedVec {
6161 vec : vec ! [ ] ,
62- limit : if limit == 0 { 10 } else { limit } ,
62+ limit : if limit == 0 { 20 } else { limit } ,
6363 }
6464 }
6565
@@ -150,7 +150,7 @@ impl Default for TreeBuilderOpts {
150150 iframe_srcdoc : false ,
151151 drop_doctype : false ,
152152 ignore_missing_rules : false ,
153- max_stack_depth : 10 ,
153+ max_stack_depth : 20 ,
154154 quirks_mode : NoQuirks ,
155155 }
156156 }
You can’t perform that action at this time.
0 commit comments