W3C home > Mailing lists > Public > public-html@w3.org > July 2012

Fwd: canvas hitregion() clarification sought

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Wed, 25 Jul 2012 01:20:22 +0100
Message-ID: <CA+ri+Vnf4ySDyKNok2o5qt9WJGH90=583S2yZ62Mu=mJiTtWSQ@mail.gmail.com>
To: HTMLWG WG <public-html@w3.org>
Cc: "Edward O'Connor (ted@oconnor.cx)" <ted@oconnor.cx>, Frank Olivier <Frank.Olivier@microsoft.com>, Richard Schwerdtfeger <schwer@us.ibm.com>
FYI
wanted clarification on his as I believe this is part of ted's canvas
change proposal

---------- Forwarded message ----------
From: Steve Faulkner <faulkner.steve@gmail.com>
Date: 25 July 2012 01:13
Subject: canvas hitregion() clarification sought
To: whatwg <whatwg@whatwg.org>


Upon reading the hit region section [1] of the spec again I noticed this:

If any of the following conditions are met, throw a
NotSupportedError<http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#notsupportederror>
exception
and abort these steps.
...
The arguments object's control member is not null but is neither an
a<http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-a-element>
element
that represents<http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#represents>
 a hyperlink<http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink>,
a button<http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-button-element>
element,
an input<http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element>
element
whose type<http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#attr-input-type>attribute
is in one of the
Checkbox<http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#checkbox-state-(type=checkbox)>
 or Radio Button<http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#radio-button-state-(type=radio)>
states,
nor an input<http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element>
element
that is a button<http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#concept-button>

This reads like it will throw an error if a custom control is referenced by
control()

<canvas>

<div tabindex=0 role=checkbox>

</canvas>

is this correct?

[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#hit-regions

-- 
with regards

Steve Faulkner
Technical Director - TPG

www.paciellogroup.com | www.HTML5accessibility.com |
www.twitter.com/stevefaulkner
HTML5: Techniques for providing useful text alternatives -
dev.w3.org/html5/alt-techniques/
Web Accessibility Toolbar - www.paciellogroup.com/resources/wat-ie-about.html





-- 
with regards

Steve Faulkner
Technical Director - TPG

www.paciellogroup.com | www.HTML5accessibility.com |
www.twitter.com/stevefaulkner
HTML5: Techniques for providing useful text alternatives -
dev.w3.org/html5/alt-techniques/
Web Accessibility Toolbar - www.paciellogroup.com/resources/wat-ie-about.html
Received on Wednesday, 25 July 2012 00:21:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 July 2012 00:21:32 GMT