Skip to content

Commit 0f01aee

Browse files
authored
Add missing getter steps for HTMLScriptElement.src (#601)
1 parent fbd1144 commit 0f01aee

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/index.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,20 @@ Update the {{HTMLScriptElement/text}} setter steps algorithm as follows.
13381338

13391339
#### The {{HTMLScriptElement/src}} IDL attribute #### {#the-src-idl-attribute}
13401340

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+
13411355
The {{HTMLScriptElement/src}} setter steps are:
13421356

13431357
1. <ins>Let |value| be the result of calling [$Get Trusted Type compliant string$] with

0 commit comments

Comments
 (0)