diff --git a/source b/source index c16dde7c133..2bc57314650 100644 --- a/source +++ b/source @@ -3415,6 +3415,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The following features are defined in UI Events: UIEVENTS
@@ -4798,6 +4800,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attributedataTrustedScriptURLThe text setter steps are to string replace
- all with the given value within this.
The text setter steps are:
Let compliantScript be the result of invoking the get trusted type compliant string algorithm with TrustedScript, this's relevant global
+ object, the given value, "HTMLScriptElement text", and "script".
Update script trustedness for + this with compliantScript.
String replace all with compliantScript within + this.
The innerText getter steps are to return the result of
+ running get the text steps with this.
The innerText setter steps are:
Let compliantScript be the result of invoking the get trusted type compliant string algorithm with TrustedScript, this's relevant global
+ object, the given value, "HTMLScriptElement innerText", and "script".
Update script trustedness for + this with compliantScript.
Run set the inner text steps with this and + compliantScript.
The textContent getter steps are to return the result of
+ running get text content with this.
The textContent setter steps are:
Let compliantScript be the result of invoking the get trusted type compliant string algorithm with TrustedScript, this's relevant global
+ object, the given value, "HTMLScriptElement textContent", and
+ "script".
Update script trustedness for + this with compliantScript.
Run set text content with this and + compliantScript.
The src
+ getter steps are:
Let element be the result of running this's get the + element.
Let contentAttributeValue be the result of running this's + get the content attribute.
If contentAttributeValue is null, then return the empty string.
Let urlString be the result of be the result of + encoding-parsing-and-serializing a URL given contentAttributeValue, + relative to element's node document.
If urlString is not failure, then return urlString.
Return contentAttributeValue, converted to a scalar + value string.
The src setter steps are:
Let compliantScriptURL be the result of invoking the get trusted type compliant string algorithm with TrustedScriptURL, this's relevant global
+ object, the given value, "HTMLScriptElement src", and "script".
Set this's src content attribute to
+ compliantScriptURL.