diff --git a/spec/index.bs b/spec/index.bs index f1c0e1b..3d856bd 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1338,6 +1338,20 @@ Update the {{HTMLScriptElement/text}} setter steps algorithm as follows. #### The {{HTMLScriptElement/src}} IDL attribute #### {#the-src-idl-attribute} +The {{HTMLScriptElement/src}} getter steps are: + +1. Let |element| be the result of running [=this=]'s [=get the element=]. + +1. Let |contentAttributeValue| be the result of running [=this=]'s [=get the content attribute=]. + +1. If |contentAttributeValue| is null, then return the empty string. + +1. Let |urlString| be the result of encoding-parsing-and-serializing a URL given |contentAttributeValue|, relative to |element|'s [=node document=]. + +1. If |urlString| is not failure, then return |urlString|. + +1. Return |contentAttributeValue|, [=converted to a scalar value string=]. + The {{HTMLScriptElement/src}} setter steps are: 1. Let |value| be the result of calling [$Get Trusted Type compliant string$] with