W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2014

[geometry] DOMPoint constructor dictionary parameter should be optional

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 6 Jan 2014 19:06:51 +1300
Message-ID: <CAOp6jLYdmUKLeeP9fcKTmjuV6HbozbbDs91pi1C4GDqxFzxMug@mail.gmail.com>
To: "public-fx@w3.org" <public-fx@w3.org>
WebIDL spec says:

> If the type of an argument is a dictionary type or a union type that has a
> dictionary type as one of its flattened member types, and this argument is
> either the final argument or is followed only by optional arguments, then
> the argument MUST be specified as optional.
>
So the DOMPoint(DOMPointInit) constructor parameter needs to be optional.
This means the no-arg DOMPoint constructor must be removed.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
Received on Monday, 6 January 2014 06:07:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:48 UTC