Skip to content

Commit 4ade736

Browse files
SimonSapinzcorpan
authored andcommitted
[cssom] Use USVString for href attribute of Stylesheet and CSSImportRule
As resolved by CSS WG on 2017-04-19, because they are URLs. This is consistent with HTML: whatwg/html#1282
1 parent 8877de9 commit 4ade736

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cssom/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ The {{StyleSheet}} interface represents an abstract, base style sheet.
809809
<pre class=idl>
810810
interface StyleSheet {
811811
readonly attribute DOMString type;
812-
readonly attribute DOMString? href;
812+
readonly attribute USVString? href;
813813
readonly attribute (Element or ProcessingInstruction)? ownerNode;
814814
readonly attribute StyleSheet? parentStyleSheet;
815815
readonly attribute DOMString? title;
@@ -1650,7 +1650,7 @@ The <code>CSSImportRule</code> interface represents an <code>@import</code> at-r
16501650

16511651
<pre class=idl>
16521652
interface CSSImportRule : CSSRule {
1653-
readonly attribute DOMString href;
1653+
readonly attribute USVString href;
16541654
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
16551655
[SameObject] readonly attribute CSSStyleSheet styleSheet;
16561656
};

0 commit comments

Comments
 (0)