Skip to content

Commit

Permalink
Adjust amendment script to work with dd elements
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Mar 6, 2023
1 parent af36c4a commit 5f23bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amendments.js
Expand Up @@ -127,8 +127,8 @@ function showAmendments() {
const target = document.getElementById(section);
let wrapper = document.createElement("div");
if (amendments[section][0].difftype !== "append") {
if (["LI"].includes(target?.tagName)) {
wrapper = document.createElement("li");
if (["LI", "DD"].includes(target?.tagName)) {
wrapper = document.createElement(target.tagName);
wrapper.className = "skip";
}
} else {
Expand Down

0 comments on commit 5f23bfb

Please sign in to comment.