Refuse editing an individual node's component tree (and bring back after 1.0 once exposed slots are allowed)
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3520487. --> Reported by: [jessebaker](https://www.drupal.org/user/3546546) Related to !136 !61 >>> <h3 id="overview">Overview</h3> <p>I have noticed that the preview rendered inside the iframe in XB is missing some elements that are present when viewing the live version of the same node.</p> <p>Screenshot 1 shows the DOM inside the iframe of this simple node in XB. </p> <p><img src="https://www.drupal.org/files/issues/2025-04-22/screenshot_1.png" alt="screenshot 1"></p> <p>In this first screenshot, labelled 1 and 2, you can see the <code>.region--content</code> div and the H1 (which is the SDC I have added to the layout.)</p> <p>Now, look at Screenshot 2. This shows the DOM of the node when viewed by an anon. user.</p> <p><img src="https://www.drupal.org/files/issues/2025-04-22/screenshot_2.png" alt="screenshot 2"></p> <p>In this second screenshot I have labelled the same <code>.region--content</code> and H1 tag with 1 and 2. You will see that between the two labelled elements a number of extra elements are rendered.</p> <p>Finally, in both screenshots, I have drawn a green box around the styles for the H1 tag. In screenshot 1, a number of styles are applied to the H1 tag in error. The selectors for the style <code>.layout--pass--content-medium &gt; *</code> etc use the <code>&gt;</code> direct descendant selector and, in this case, that is the H1 tag. I believe they are intended to be applied to the <code>&lt;article&gt;</code> element that is the direct child of .region--content in screenshot 2. Having them apply to the H1 tag is causing the layout in some cases to be very broken.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>The HTML structure seen in the live version of the page (screenshot 2) should be present in the XB preview markup (screenshot 1)</p> <h3 id="ui-changes">User interface changes</h3> > Related issue: [Issue #3534128](https://www.drupal.org/node/3534128) > Related issue: [Issue #3518013](https://www.drupal.org/node/3518013) > Related issue: [Issue #3524738](https://www.drupal.org/node/3524738) > Related issue: [Issue #3543449](https://www.drupal.org/node/3543449) > Related issue: [Issue #3550093](https://www.drupal.org/node/3550093) > Related issue: [Issue #3511366](https://www.drupal.org/node/3511366)
issue