Skip to content

Commit

Permalink
Merge pull request #517 from w3c/daniel-montalvo/issue514
Browse files Browse the repository at this point in the history
Fix Principles and Guidelines say "undefined"
  • Loading branch information
maryjom authored Sep 16, 2024
2 parents 2fc2a71 + 0b92c0a commit e5b7dce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wcag2ict.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ function prepSec(n) {
bq.innerHTML = content;
nhead.after(bq);
// insert sc Level on separte line
var scLevel = document.createElement("p");
scLevel.innerHTML = nlevel;
bq.before(scLevel);
if (nlevel) {
var scLevel = document.createElement("p");
scLevel.innerHTML = nlevel;
bq.before(scLevel);
}
}
}

Expand Down

0 comments on commit e5b7dce

Please sign in to comment.