https://w3c.github.io/trusted-types/dist/spec/#validate-attribute-mutation - This function specifies that the sink value when calling document.createElement('iframe').setAttribute('srcdoc', 'foo'); should be HTMLIframeElement srcdoc the same as if you did document.createElement('iframe').srcdoc = 'foo';. However, this doesn't match Chromiums behaviour (where the sink is just Element setAttribute.
What should the spec say here? Should it just use the function as the sink (matching implementation)?
https://w3c.github.io/trusted-types/dist/spec/#validate-attribute-mutation - This function specifies that the sink value when calling
document.createElement('iframe').setAttribute('srcdoc', 'foo');
should beHTMLIframeElement srcdoc
the same as if you diddocument.createElement('iframe').srcdoc = 'foo';
. However, this doesn't match Chromiums behaviour (where the sink is justElement setAttribute
.What should the spec say here? Should it just use the function as the sink (matching implementation)?
cc @koto as he wrote this spec piece.