This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22133 - Violations of WebIDL, using a sequence as the type of an attribute
Summary: Violations of WebIDL, using a sequence as the type of an attribute
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-22 13:45 UTC by Simon Pieters
Modified: 2013-08-08 13:26 UTC (History)
0 users

See Also:


Attachments

Description Simon Pieters 2013-05-22 13:45:08 UTC
http://dev.w3.org/csswg/cssom/#cssstylesheet

[[
readonly attribute CSSRuleList cssRules;
]]

Line 0 of IDL #0:Attribute cssRules in Interface CSSStyleSheet is defined as a sequence.
Line 0 of IDL #0:Attribute styleSheets in Interface Document is defined as a sequence.
Line 0 of IDL #0:Attribute cssRules in Interface CSSMediaRule is defined as a sequence.

WebIDL says

[[
Sequences MUST NOT be used as the type of an attribute, constant or exception field.
]]
http://dev.w3.org/2006/webapi/WebIDL/#idl-sequence

Maybe we should use http://dev.w3.org/2006/webapi/WebIDL/#idl-array instead for these?