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
<p><var>script</var>’s <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#document" id="ref-for-document①">Document</a></code>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global" id="ref-for-concept-relevant-global①">relevant global object</a> as <var>global</var>,</p>
2401
2401
<li data-md>
2402
-
<p><var>script</var>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-child-text-content" id="ref-for-concept-child-text-content①">child text content</a> attribute value,</p>
2402
+
<p><var>script</var>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-child-text-content" id="ref-for-concept-child-text-content①">child text content</a> attribute value as <var>input</var>,</p>
To <dfn class="dfn-paneled" data-dfn-type="abstract-op" data-export id="abstract-opdef-get-trusted-types-compliant-attribute-value">get Trusted Types-compliant attribute value</dfn> on <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#attr" id="ref-for-attr">Attr</a></code> <var>attribute</var> with <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#element" id="ref-for-element④">Element</a></code> <var>element</var> and <code class="idl"><a data-link-type="idl" href="#typedefdef-trustedtype" id="ref-for-typedefdef-trustedtype④">TrustedType</a></code> or a string <var>newValue</var>, perform the following steps:
2412
+
To <dfn class="dfn-paneled" data-dfn-type="abstract-op" data-export id="abstract-opdef-get-trusted-types-compliant-attribute-value">get Trusted Types-compliant attribute value</dfn> given a string <var>attributeName</var>, string <var>attributeNs</var>, <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#element" id="ref-for-element④">Element</a></code> <var>element</var> and <code class="idl"><a data-link-type="idl" href="#typedefdef-trustedtype" id="ref-for-typedefdef-trustedtype④">TrustedType</a></code> or a string <var>newValue</var>, perform the following steps:
2413
2413
2414
2414
2415
2415
<ol>
2416
+
<li data-md>
2417
+
<p>If <var>attributeNs</var> is the empty string, set <var>attributeNs</var> to null.</p>
2416
2418
<li data-md>
2417
2419
<p>Set <var>attributeData</var> to the result of <a data-link-type="abstract-op" href="#abstract-opdef-get-trusted-type-data-for-attribute" id="ref-for-abstract-opdef-get-trusted-type-data-for-attribute①">Get Trusted Type data for attribute</a> algorithm, with the following arguments:</p>
2418
2420
<ul>
2419
2421
<li data-md>
2420
2422
<p><var>element</var></p>
2421
2423
<li data-md>
2422
-
<p><var>attribute</var>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-attribute-local-name" id="ref-for-concept-attribute-local-name">local name</a> as <var>attribute</var></p>
2424
+
<p><var>attributeName</var></p>
2423
2425
<li data-md>
2424
-
<p><var>attribute</var>’s <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-attribute-namespace" id="ref-for-concept-attribute-namespace">namespace</a> as <var>attributeNs</var></p>
"8d48cf32": {"dfnID":"8d48cf32","dfnText":"event handler content attribute","external":true,"refSections":[{"refs":[{"id":"ref-for-event-handler-content-attributes"},{"id":"ref-for-event-handler-content-attributes\u2460"}],"title":"3.8. Get Trusted Type data for attribute"}],"url":"https://html.spec.whatwg.org/#event-handler-content-attributes"},
3950
-
"99573380": {"dfnID":"99573380","dfnText":"Attr","external":true,"refSections":[{"refs":[{"id":"ref-for-attr"}],"title":"3.7. Get Trusted Types-compliant attribute value"}],"url":"https://dom.spec.whatwg.org/#attr"},
"9e1b2fe2": {"dfnID":"9e1b2fe2","dfnText":"set text content","external":true,"refSections":[{"refs":[{"id":"ref-for-set-text-content"}],"title":"4.1.2.3. The textContent IDL attribute"}],"url":"https://dom.spec.whatwg.org/#set-text-content"},
3953
3951
"a264b960": {"dfnID":"a264b960","dfnText":"innerText","external":true,"refSections":[{"refs":[{"id":"ref-for-dom-innertext"}],"title":"4.1.2. Enforcement for scripts"}],"url":"https://html.spec.whatwg.org/multipage/dom.html#dom-innertext"},
"abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy": {"dfnID":"abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy","dfnText":"Should sink type mismatch violation be blocked by Content Security Policy?","external":false,"refSections":[{"refs":[{"id":"ref-for-abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy"}],"title":"3.4. Get Trusted Type compliant string"}],"url":"#abstract-opdef-should-sink-type-mismatch-violation-be-blocked-by-content-security-policy"},
3965
3963
"abstract-opdef-should-trusted-type-policy-creation-be-blocked-by-content-security-policy": {"dfnID":"abstract-opdef-should-trusted-type-policy-creation-be-blocked-by-content-security-policy","dfnText":"Should Trusted Type policy creation be blocked by Content Security Policy?","external":false,"refSections":[{"refs":[{"id":"ref-for-abstract-opdef-should-trusted-type-policy-creation-be-blocked-by-content-security-policy"}],"title":"3.1. Create a Trusted Type Policy"}],"url":"#abstract-opdef-should-trusted-type-policy-creation-be-blocked-by-content-security-policy"},
3966
3964
"b0d7f3c3": {"dfnID":"b0d7f3c3","dfnText":"USVString","external":true,"refSections":[{"refs":[{"id":"ref-for-idl-USVString"}],"title":"2.2.3. TrustedScriptURL"},{"refs":[{"id":"ref-for-idl-USVString\u2460"}],"title":"2.3.3. TrustedTypePolicyOptions"},{"refs":[{"id":"ref-for-idl-USVString\u2461"}],"title":"4.1.2. Enforcement for scripts"}],"url":"https://webidl.spec.whatwg.org/#idl-USVString"},
3967
-
"b3955a25": {"dfnID":"b3955a25","dfnText":"namespace","external":true,"refSections":[{"refs":[{"id":"ref-for-concept-attribute-namespace"}],"title":"3.7. Get Trusted Types-compliant attribute value"}],"url":"https://dom.spec.whatwg.org/#concept-attribute-namespace"},
"e02495ec": {"dfnID":"e02495ec","dfnText":"element namespace","external":true,"refSections":[{"refs":[{"id":"ref-for-concept-element-namespace"}],"title":"3.8. Get Trusted Type data for attribute"}],"url":"https://dom.spec.whatwg.org/#concept-element-namespace"},
4035
4032
"e19f3699": {"dfnID":"e19f3699","dfnText":"XLink namespace","external":true,"refSections":[{"refs":[{"id":"ref-for-xlink-namespace"}],"title":"3.8. Get Trusted Type data for attribute"}],"url":"https://infra.spec.whatwg.org/#xlink-namespace"},
4036
4033
"e1f8b538": {"dfnID":"e1f8b538","dfnText":"get text content","external":true,"refSections":[{"refs":[{"id":"ref-for-get-text-content"}],"title":"4.1.2.3. The textContent IDL attribute"}],"url":"https://dom.spec.whatwg.org/#get-text-content"},
4037
-
"e240317a": {"dfnID":"e240317a","dfnText":"local name","external":true,"refSections":[{"refs":[{"id":"ref-for-concept-attribute-local-name"}],"title":"3.7. Get Trusted Types-compliant attribute value"}],"url":"https://dom.spec.whatwg.org/#concept-attribute-local-name"},
4038
4034
"e7762445": {"dfnID":"e7762445","dfnText":"reentrant invocation of the parser","external":true,"refSections":[{"refs":[{"id":"ref-for-nestedParsing"}],"title":"4.1.2.6. Setting slot values from parser"}],"url":"https://html.spec.whatwg.org/#nestedParsing"},
4039
4035
"e99bd18e": {"dfnID":"e99bd18e","dfnText":"relevant global object","external":true,"refSections":[{"refs":[{"id":"ref-for-concept-relevant-global"}],"title":"2.3.1. TrustedTypePolicyFactory"},{"refs":[{"id":"ref-for-concept-relevant-global\u2460"}],"title":"3.6. Prepare the script text"},{"refs":[{"id":"ref-for-concept-relevant-global\u2461"}],"title":"3.7. Get Trusted Types-compliant attribute value"},{"refs":[{"id":"ref-for-concept-relevant-global\u2462"}],"title":"4.1.1. Extensions to the WindowOrWorkerGlobalScope interface"},{"refs":[{"id":"ref-for-concept-relevant-global\u2463"}],"title":"4.1.2.2. The innerText IDL attribute"},{"refs":[{"id":"ref-for-concept-relevant-global\u2464"}],"title":"4.1.2.3. The textContent IDL attribute"},{"refs":[{"id":"ref-for-concept-relevant-global\u2465"}],"title":"4.1.2.4. The text IDL attribute"},{"refs":[{"id":"ref-for-concept-relevant-global\u2466"}],"title":"4.1.2.5. The src IDL attribute"}],"url":"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global"},
"#window-trusted-type-policy-factory": {"displayText":"trusted type policy factory","export":true,"for_":["Window"],"level":"","normative":true,"shortname":"trusted-types","spec":"trusted-types","status":"local","text":"trusted type policy factory","type":"dfn","url":"#window-trusted-type-policy-factory"},
"https://dom.spec.whatwg.org/#concept-child-text-content": {"displayText":"child text content","export":true,"for_":[],"level":"1","normative":true,"shortname":"dom","spec":"dom","status":"current","text":"child text content","type":"dfn","url":"https://dom.spec.whatwg.org/#concept-child-text-content"},
0 commit comments