xp
xp copied to clipboard
`data-portal-component-type` exist in LIVE mode
The data attributes that are designed for EDIT mode are left in LIVE mode, too. This bloats HTML. Hopefully we can remove it without side effects.
Ref #9394 .
No can do, even we use them
In this case they should appear consistently. Sometimes they are swallowed for text component.
The reason why they are used in clients is actually the text component. Point is that people normally don't override it (it ships with default rendering). and then people cannot implement a consistent set of element identifiers to style components (i.e. add some margin between components). I have demonstrated how text components can be custom rendered, it basically means making your own implementation of "render region", so text component is handled differently from the other components.
Would actually be interesting if these attributes could be hidden in xp8