Revision 70923829
Added by koszko over 1 year ago
| content/policy_enforcing.js | ||
|---|---|---|
| 118 | 118 |
* relatively easily accessed in case they contain some useful data. |
| 119 | 119 |
*/ |
| 120 | 120 |
const construct_name = [attr]; |
| 121 |
while (hasa(node, construct_name.join("")))
|
|
| 121 |
while (hasa(node, construct_name.join("-")))
|
|
| 122 | 122 |
construct_name.unshift(blocked_str); |
| 123 | 123 |
|
| 124 | 124 |
while (construct_name.length > 1) {
|
| 125 | 125 |
construct_name.shift(); |
| 126 |
const name = construct_name.join("");
|
|
| 126 |
const name = construct_name.join("-");
|
|
| 127 | 127 |
seta(node, `${blocked_str}-${name}`, geta(node, name));
|
| 128 | 128 |
} |
| 129 | 129 |
|
Also available in: Unified diff
fix setting of 'blocked-blocked<...>-' attributes and add tests