fix: interactions are builder-only for users without unfiltered_html (P16)
Divi's frontend applies the interaction effect "Attribute" with setAttribute (e.g. an onclick handler) and sets cookies; *.decoration.interactions joins the S7 gate in ValueCleaner, which also covers removals and StoredNodeGuard. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -148,6 +148,17 @@ final class StoredNodeGuardTest extends TestCase
|
||||
])]]),
|
||||
'module.advanced.html',
|
||||
],
|
||||
'interactions (P16)' => [
|
||||
self::node('divi/text', ['module' => ['decoration' => ['interactions' => self::desktop([
|
||||
'interactions' => [[
|
||||
'trigger' => 'click',
|
||||
'effect' => 'addAttribute',
|
||||
'attributeName' => 'data-probe',
|
||||
'attributeValue' => '1',
|
||||
]],
|
||||
])]]]),
|
||||
'module.decoration.interactions',
|
||||
],
|
||||
// Code module (E6).
|
||||
'code module' => [
|
||||
self::node('divi/code', ['content' => ['innerContent' => self::desktop(self::PROBE_SCRIPT)]]),
|
||||
|
||||
Reference in New Issue
Block a user