Skip to content

Commit

Permalink
[cssom] Use USVString for href attribute of Stylesheet and CSSImportRule
Browse files Browse the repository at this point in the history
As resolved by CSS WG on 2017-04-19, because they are URLs.

This is consistent with HTML: whatwg/html#1282
  • Loading branch information
SimonSapin committed Apr 21, 2017
1 parent 3228c6b commit de105a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cssom/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ The {{StyleSheet}} interface represents an abstract, base style sheet.
<pre class=idl>
interface StyleSheet {
readonly attribute DOMString type;
readonly attribute DOMString? href;
readonly attribute USVString? href;
readonly attribute (Element or ProcessingInstruction)? ownerNode;
readonly attribute StyleSheet? parentStyleSheet;
readonly attribute DOMString? title;
Expand Down Expand Up @@ -1650,7 +1650,7 @@ The <code>CSSImportRule</code> interface represents an <code>@import</code> at-r

<pre class=idl>
interface CSSImportRule : CSSRule {
readonly attribute DOMString href;
readonly attribute USVString href;
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
[SameObject] readonly attribute CSSStyleSheet styleSheet;
};
Expand Down

0 comments on commit de105a8

Please sign in to comment.