[Bug 21066] Provide an event path API

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21066

--- Comment #61 from Koji Ishii <kojiishi@gmail.com> ---
(In reply to Hayato Ito from comment #60)
> 
> According to the comment,
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=25458#c5, Sequence<T> doesn't
> work for attributes.

Ah! Thank you, I missed that. By re-reading the spec, I found the source:
http://www.w3.org/TR/WebIDL/#idl-sequence

]]]
Sequences must not be used as the type of an attribute, constant or exception
field.

Note
This restriction exists so that it is clear to specification writers and API
users that sequences are copied rather than having references to them passed
around. Instead of a writable attribute of a sequence type, it is suggested
that a pair of operations to get and set the sequence is used. Another option
is to use an array type, which can be used as the type of an attribute.
[[[

Earlier in this thread preferred an attribute than an operation, so we use
array, but clarify in the spec that it returns a copy everytime. Understood.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 14 January 2015 06:35:18 UTC