freeze-element
The freeze-element snippet freezes a DOM element, preventing new nodes from being added inside the element.
Parameters
|
Name |
Description |
Example |
Mandatory |
|---|---|---|---|
|
property |
The CSS selector for the parent element to freeze. |
|
Yes |
|
options |
Options string, separated by |
|
No |
|
exceptions |
Array of selectors/regex for nodes to allow. |
|
No |
Filter examples
|
Filter |
Result |
|---|---|
|
|
Blocks any addition of an immediate child to |
|
|
Blocks any addition to the entire subtree of |
|
|
Blocks additions except elements with |
|
|
Blocks additions except |
|
|
Throws an error for any addition to |
|
|
Throws an error for subtree additions except |