summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/policy_enforcing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/policy_enforcing.js b/content/policy_enforcing.js
index 0bbe3c6..29990b8 100644
--- a/content/policy_enforcing.js
+++ b/content/policy_enforcing.js
@@ -118,12 +118,12 @@ function block_attribute(node, attr, ns=null, replace_with=null) {
* relatively easily accessed in case they contain some useful data.
*/
const construct_name = [attr];
- while (hasa(node, construct_name.join("")))
+ while (hasa(node, construct_name.join("-")))
construct_name.unshift(blocked_str);
while (construct_name.length > 1) {
construct_name.shift();
- const name = construct_name.join("");
+ const name = construct_name.join("-");
seta(node, `${blocked_str}-${name}`, geta(node, name));
}