@@ -2812,16 +2812,23 @@ Utility APIs {#utility-apis}
28122812The <code> CSS.escape()</code> Method {#the-css.escape()-method}
28132813------------------------------------------------------
28142814
2815- The <code> CSS</code> interface holds useful CSS-related functions that do not belong elsewhere.
2815+ The <code> CSS</code> namespace holds useful CSS-related functions that do not belong elsewhere.
28162816
28172817<pre class=idl>
28182818[Exposed=Window]
2819- interface CSS {
2820- static CSSOMString escape(CSSOMString ident);
2819+ namespace CSS {
2820+ CSSOMString escape(CSSOMString ident);
28212821};
28222822</pre>
28232823
2824- The <dfn method for=CSS>escape(<var>ident</var>)</dfn> method must return the result of invoking <a>serialize an identifier</a> of
2824+ Issue: This was previously specified as an IDL interface
2825+ that only held static methods.
2826+ Switching to an IDL namespace is *nearly* identical,
2827+ so it's expected that there won't be any compat concerns.
2828+ If any are discovered, please report
2829+ so we can consider reverting this change.
2830+
2831+ The <dfn method for=CSS>escape(<var>ident</var>)</dfn> operation must return the result of invoking <a>serialize an identifier</a> of
28252832<var> ident</var> .
28262833
28272834<div class=example>
@@ -2835,7 +2842,7 @@ The <dfn method for=CSS>escape(<var>ident</var>)</dfn> method must return the re
28352842 <pre> var element = document.querySelector('a[href="#' + CSS.escape(fragment) + '"]' );</pre>
28362843</div>
28372844
2838- Specifications that define static functions on the {{CSS}} interface and want to
2845+ Specifications that define operations on the {{CSS}} namespace and want to
28392846store some state should store the state on the <a spec=html>current global
28402847object</a> 's <a spec=html>associated <code>Document</code></a> .
28412848<!-- https://github.com/w3c/csswg-drafts/issues/180 -->
0 commit comments