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
Copy file name to clipboardExpand all lines: spec/index.bs
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1338,6 +1338,20 @@ Update the {{HTMLScriptElement/text}} setter steps algorithm as follows.
1338
1338
1339
1339
#### The {{HTMLScriptElement/src}} IDL attribute #### {#the-src-idl-attribute}
1340
1340
1341
+
The {{HTMLScriptElement/src}} getter steps are:
1342
+
1343
+
1. <ins>Let |element| be the result of running [=this=]'s [=get the element=].</ins>
1344
+
1345
+
1. <ins>Let |contentAttributeValue| be the result of running [=this=]'s [=get the content attribute=].</ins>
1346
+
1347
+
1. <ins>If |contentAttributeValue| is null, then return the empty string.</ins>
1348
+
1349
+
1. <ins>Let |urlString| be the result of encoding-parsing-and-serializing a URL given |contentAttributeValue|, relative to |element|'s [=node document=].</ins>
1350
+
1351
+
1. <ins>If |urlString| is not failure, then return |urlString|.</ins>
1352
+
1353
+
1. <ins>Return |contentAttributeValue|, [=converted to a scalar value string=].
1354
+
1341
1355
The {{HTMLScriptElement/src}} setter steps are:
1342
1356
1343
1357
1. <ins>Let |value| be the result of calling [$Get Trusted Type compliant string$] with
0 commit comments