Skip to content

Commit

Permalink
WeBWorK: clear solution label regardless of div or span (PR PreTeXtBo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan authored and rbeezer committed Jun 18, 2024
1 parent 845214f commit e10eedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pretext-webwork/2.19/pretext-webwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ function translateHintSol(ww_id, body_div, ww_domain, b_ptx_has_hint, b_ptx_has_
knowlSummary.className = '';
knowlSummary.classList.add('knowl__link');

const summaryLabel = knowlSummary.getElementsByTagName('div')[0];
const summaryLabel = knowlSummary.children[0];
summaryLabel.remove();

const newLabelSpan = document.createElement('span');
Expand Down

0 comments on commit e10eedb

Please sign in to comment.