Antonio Gomes wrote:
You're assuming that "an element" is represented by a single rectangle in the page. This assumption is, unfortunately, false.

I'm not assuming this, am I :S ?! I'm not an expert in mozilla internals yet, but I think every object can be marked as a focused object

What do you mean by "object"? Do you mean DOM node? If so, this is only sort of the case. What's actually marked focused is a pair of layout object and DOM object.


are you saying cases like this ?!

<map>
<area> ... </area>
<image> ... </image>
</map>

No. I'm saying:

<map name="foo"><area/></map>

<img usemap="#foo" id="one">
<img usemap="#foo" id="two">

Now the user can focus the <area/> element in two different locations on the page (inside image one, and inside image two). Try this out on http://www.slashdot.org if you want -- the little |X| thing at the top right of every slashbox on the right is an image, and they all share as single imagemap.

-Boris
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to