From 49d8886116e9c6a1e94a66f0989b50aa153adc7b Mon Sep 17 00:00:00 2001 From: Darren Shen Date: Mon, 5 Feb 2018 13:35:03 +1100 Subject: [PATCH 1/2] Clarify CSSURLImageValue.url --- css-typed-om/Overview.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 8ee32950..685d2232 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -2650,11 +2650,11 @@ objects, the {{CSSURLImageValue/url}} attribute contains the URL that references when called, perform the following steps: - 1. If the |url| passed into the constructor doesn't correctly - parse as a <>, throw a {{TypeError}} and exit this algorithm. + 1. If the |url| passed into the constructor is not a valid url, + throw a {{TypeError}} and exit this algorithm. 2. Else, return a new {{CSSURLImageValue}} with its {{CSSURLImageValue/url}} internal slot - set to |url|. + set to |url| with CSS character escapes processed. Issue(159): Spec up ColorValue From 8df27ce200e7d3d603daeae332310d95819e756b Mon Sep 17 00:00:00 2001 From: Darren Shen Date: Thu, 22 Feb 2018 10:41:30 +1100 Subject: [PATCH 2/2] Validate url in CSSURLImageValue --- css-typed-om/Overview.bs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 719822a5..2de05c0c 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -2743,12 +2743,11 @@ objects, the {{CSSURLImageValue/url}} attribute contains the URL that references when called, perform the following steps: - 1. If the |url| passed into the constructor is not a valid url, + 1. If the |url| passed into the constructor is not a [[url#valid-url-string]], throw a {{TypeError}} and exit this algorithm. 2. Else, return a new {{CSSURLImageValue}} - 1. Return a new {{CSSURLImageValue}} with its {{CSSURLImageValue/url}} internal slot - set to |url| with CSS character escapes processed. + set to |url|.