trusted-types
trusted-types copied to clipboard
Should all 3 script IDL setters change the associated script text value identically
A good point came up during code review of an associated webkit patch that the .innerText setter steps and the .textContent/.text setter steps are different, and presumably could result in a different child contents value? If this is the case the current spec (and Chromium implementation) could lead to some script execution errors despite being set via a trusted object and sanctioned IDL attribute?
Question 1: Are these actually identical in behaviour?
Question 2: If they're not should the spec and implementationed be updated to account for the differences?