Skip to content

Commit

Permalink
Merge pull request #145 from exadel-inc/bugfix/EBP-144
Browse files Browse the repository at this point in the history
[EBP-144] - Fixing meta tag
  • Loading branch information
AlKaliada authored Oct 24, 2024
2 parents 4304034 + a625a51 commit 8c68424
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
jcr:primaryType="nt:unstructured"
jcr:title="Success"
jcr:titleError="Error"
granite:class="backpack-meta"
sling:resourceType="granite/ui/components/coral/foundation/form/responses/openprompt"/>
<items jcr:primaryType="nt:unstructured">
<content jcr:primaryType="nt:unstructured"
Expand Down Expand Up @@ -302,6 +303,7 @@
jcr:primaryType="nt:unstructured"
jcr:title="Success"
jcr:titleError="Error"
granite:class="backpack-meta"
sling:resourceType="granite/ui/components/coral/foundation/form/responses/openprompt"/>
<items jcr:primaryType="nt:unstructured">
<content jcr:primaryType="nt:unstructured"
Expand Down Expand Up @@ -357,6 +359,7 @@
jcr:primaryType="nt:unstructured"
jcr:title="Success"
jcr:titleError="Error"
granite:class="backpack-meta"
sling:resourceType="granite/ui/components/coral/foundation/form/responses/openprompt"/>
<items jcr:primaryType="nt:unstructured">
<content jcr:primaryType="nt:unstructured"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,4 +569,12 @@
}
});

if (window.DOMPurify) {
window.DOMPurify.addHook('uponSanitizeElement', function (node, hookEvent ) {
if (hookEvent && hookEvent.tagName === 'meta' && node.classList.contains('backpack-meta')) {
hookEvent.allowedTags.meta = true;
}
});
}

})(Granite, Granite.$);
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class="coral-Form coral-Form--vertical foundation-form"
data-foundation-form-ajax="true"
data-foundation-form-loadingmask="true">
<meta class="foundation-form-response-ui-success"
<meta class="foundation-form-response-ui-success backpack-meta"
data-foundation-form-response-ui-success="{&#34;name&#34;:&#34;foundation.prompt.open&#34;,&#34;open&#34;:null,&#34;redirect&#34;:null,&#34;title&#34;:&#34;Success&#34;,&#34;message&#34;:null}">
<div class="coral-FixedColumn">
<div class="coral-FixedColumn-column">
Expand Down

0 comments on commit 8c68424

Please sign in to comment.