cubicweb #3161100 "edit box" reloading when using facets nests incorrectly replacement HTML content [validation pending]

When facets are used (found and tested using the date_creation slider), the #edit_box contextual box is reloaded (cubicweb.facets.js in the second half of buildRQL()). However, the reload code transforms the original HTML:

<div class="contextualBox edit_box" id="edit_box">
  <div class="boxTitle"></div>
  <div class="boxFooter"></div>
</div>

into:

<div class="contextualBox edit_box" id="edit_box">
  <div class="contextualBox edit_box" id="edit_box">
    <div class="boxTitle"></div>
    <div class="boxFooter"></div>
  </div>
</div>

The current CubicWeb CSS doesn't really care about this sort of nesting, but it breaks rendering when using the boostrap cube.

priorityminor
typebug
done in3.17.7
load0.100
load left0.000
closed by#dde9fe1e0ce3 [facets] Correctly replace old 'edit box' HTML on facet-induced page refresh (closes #3161100)
patch[facets] Correctly replace old 'edit box' HTML on facet-induced page refresh (closes #3161100) [applied]