Skip to content

Commit 4455e9e

Browse files
committed
[cssom] add support for array types
1 parent fe8d09c commit 4455e9e

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

cssom/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ <h4 id="extensions-to-the-document-interface"><span class="secno">6.2.3 </span>E
11641164
<span class="idlAttribute"> attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-Document-selectedStyleSheetSet">selectedStyleSheetSet</a></span>;</span>
11651165
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-Document-lastStyleSheetSet">lastStyleSheetSet</a></span>;</span>
11661166
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-Document-preferredStyleSheetSet">preferredStyleSheetSet</a></span>;</span>
1167-
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-Document-styleSheetSets">styleSheetSets</a></span>;</span>
1167+
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>[]</span> <span class="idlAttrName"><a href="#widl-Document-styleSheetSets">styleSheetSets</a></span>;</span>
11681168
<span class="idlMethod"> <span class="idlMethType"><a>void</a></span> <span class="idlMethName"><a href="#widl-Document-enableStyleSheetsForSet-void-DOMString-name">enableStyleSheetsForSet</a></span> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a>?</span> <span class="idlParamName">name</span></span>);</span>
11691169
};</span></pre>
11701170
<dl class="attributes">
@@ -1185,7 +1185,7 @@ <h4 id="extensions-to-the-document-interface"><span class="secno">6.2.3 </span>E
11851185
<dd>
11861186
<p>The <code>preferredStyleSheetSet</code> attribute must return the <a href="#preferred-style-sheet-set-name">preferred style sheet set name</a>.</p> <p class="note">Unlike <code title="dom-Document-lastStyleSheetSet">lastStyleSheetSet</code>, this attribute is initially the empty string.</dd>
11871187
<dt class="attribute" id="widl-Document-styleSheetSets">
1188-
<code>styleSheetSets</code> of type <span class="idlAttrType"><a>DOMString</a></span>, readonly</dt>
1188+
<code>styleSheetSets</code> of type <span class="idlAttrType"><a>DOMString</a>[]</span>, readonly</dt>
11891189
<dd>
11901190
<p>The <code>styleSheetSets</code> attribute must return a list of the <a href="#style-sheet-set-name" title="style sheet set name">style sheet set names</a> of the <a href="#style-sheet-set" title="style sheet set">style sheet sets</a>, in order of the <a href="#document-style-sheets">document style sheets</a>.</p> <p class="issue">The return value is intended to be 'DOMString[]', but the brackets are missing in the IDL due to a bug in the spec's build process.</dd>
11911191
</dl>
@@ -1201,7 +1201,7 @@ <h4 id="extensions-to-the-document-interface"><span class="secno">6.2.3 </span>E
12011201
<span class="idlAttribute"> attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-Document-selectedStyleSheetSet">selectedStyleSheetSet</a></span>;</span>
12021202
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-Document-lastStyleSheetSet">lastStyleSheetSet</a></span>;</span>
12031203
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>?</span> <span class="idlAttrName"><a href="#widl-Document-preferredStyleSheetSet">preferredStyleSheetSet</a></span>;</span>
1204-
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a></span> <span class="idlAttrName"><a href="#widl-Document-styleSheetSets">styleSheetSets</a></span>;</span>
1204+
<span class="idlAttribute"> readonly attribute <span class="idlAttrType"><a>DOMString</a>[]</span> <span class="idlAttrName"><a href="#widl-Document-styleSheetSets">styleSheetSets</a></span>;</span>
12051205
<span class="idlMethod"> <span class="idlMethType"><a>void</a></span> <span class="idlMethName"><a href="#widl-Document-enableStyleSheetsForSet-void-DOMString-name">enableStyleSheetsForSet</a></span> (<span class="idlParam"><span class="idlParamType"><a>DOMString</a>?</span> <span class="idlParamName">name</span></span>);</span>
12061206
};</span></pre>
12071207
<dl class="attributes">
@@ -1222,7 +1222,7 @@ <h4 id="extensions-to-the-document-interface"><span class="secno">6.2.3 </span>E
12221222
<dd>
12231223
<p>The <code>preferredStyleSheetSet</code> attribute must return the <a href="#preferred-style-sheet-set-name">preferred style sheet set name</a>.</p> <p class="note">Unlike <code title="dom-Document-lastStyleSheetSet">lastStyleSheetSet</code>, this attribute is initially the empty string.</dd>
12241224
<dt class="attribute" id="widl-Document-styleSheetSets">
1225-
<code>styleSheetSets</code> of type <span class="idlAttrType"><a>DOMString</a></span>, readonly</dt>
1225+
<code>styleSheetSets</code> of type <span class="idlAttrType"><a>DOMString</a>[]</span>, readonly</dt>
12261226
<dd>
12271227
<p>The <code>styleSheetSets</code> attribute must return a list of the <a href="#style-sheet-set-name" title="style sheet set name">style sheet set names</a> of the <a href="#style-sheet-set" title="style sheet set">style sheet sets</a>, in order of the <a href="#document-style-sheets">document style sheets</a>.</p> <p class="issue">The return value is intended to be 'DOMString[]', but the brackets are missing in the IDL due to a bug in the spec's build process.</dd>
12281228
</dl>

cssom/cssom-generate.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,9 @@
570570
if ( !! type.nullable ) {
571571
s += '?';
572572
}
573+
if ( !! type.array ) {
574+
s += '[]';
575+
}
573576
if ( !! cssClass ) {
574577
s += eltEnd ( 'span', false );
575578
}

0 commit comments

Comments
 (0)