Skip to content

Commit

Permalink
style(dom): run npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
magaldima committed Sep 23, 2024
1 parent 5a7f781 commit 190b53c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/renderers/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ function addProps(el: HTMLElement | Element, node) {
// If the element is an iframe and it has no srcdoc or src, set the srcdoc to an empty string.
// Content specified via srcdoc is treated as being from the same origin as the parent document.
// In some browsers (like Safari 17+), empty iframes without src or srcdoc may be treated as "anonymous," potentially blocking certain content.
if (el.tagName.toLowerCase() === ELEMENT_TAG.IFRAME && (!props.srcdoc && !props.src)) {
el.setAttribute('srcdoc', '');
if (
el.tagName.toLowerCase() === ELEMENT_TAG.IFRAME &&
!props.srcdoc &&
!props.src
) {
el.setAttribute("srcdoc", "");
}
}
const ADD_CHILDREN: {
Expand Down

0 comments on commit 190b53c

Please sign in to comment.