[whatwg] hit regions: moving an element out of the shadow tree
ian at hixie.ch
Sat Feb 8 08:55:31 PST 2014
On Fri, 7 Feb 2014, Rik Cabanier wrote:
> Another question: it is currently valid to pass in a control that is not
> part of the canvas shadow tree. Doing this will ignore the control.
> Shouldn't this be invalid and throw an error?
APIs don't really have a concept of "valid" or "invalid".
It doesn't throw, because the control might have just been created and the
author might have painted it before adding it to the canvas. It'll work
once the control is a descendant of the canvas. You can use this to
temporarily stop events being propagated, while keeping the region around.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg