You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Synthetic Shadow DOM mode, When multiple elements set their id attribute and id-referencing attributes to a common value in HTML Template, they are all transformed to a new common value in rendered HTML, thus preserving the reference.
This can be observed with aria-labelledby, aria-describedby and for id-referencing attribute.
However no transformation is applied to popovertarget attribute, thus breaking the reference
Steps to Reproduce
<template><labelfor="form-element">Hello</label><inputid="form-element" type="text" /><buttonaria-describedby="helptext">Hello</button><sectionid="helptext">Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.</section><buttonpopovertarget="popover-id">Hello</button><sectionid="popover-id" popover>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.</section></template>
Expected Results
popovertarget's value should be transformed to be as same as that of id's value in section[popover]
Actual Results
popovertarget's value is not transformed.
Browsers Affected
All
Version
LWC: x.x.x
Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
Rendered HTML for above example
<main-playgroundlwc-8oejcplpid="" dir="ltr"><labelfor="form-element-1">Hello</label><inputtype="text" id="form-element-1" /><buttonaria-describedby="helptext-1">Hello</button><sectionid="helptext-1">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
</section><buttonpopovertarget="popover-id">Hello</button><sectionpopover="" id="popover-id-1">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, quos.
</section></main-playground>
The text was updated successfully, but these errors were encountered:
Description
In Synthetic Shadow DOM mode, When multiple elements set their
id
attribute and id-referencing attributes to a common value in HTML Template, they are all transformed to a new common value in rendered HTML, thus preserving the reference.This can be observed with
aria-labelledby
,aria-describedby
andfor
id-referencing attribute.However no transformation is applied to
popovertarget
attribute, thus breaking the referenceSteps to Reproduce
Expected Results
popovertarget
's value should be transformed to be as same as that ofid
's value insection[popover]
Actual Results
popovertarget
's value is not transformed.Browsers Affected
All
Version
Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
Rendered HTML for above example
The text was updated successfully, but these errors were encountered: