[whatwg] "live" image maps

On Sun, 11 Feb 2007, Alexey Feldgendler wrote:
> On Sat, 10 Feb 2007 12:29:46 +0100, Anne van Kesteren <annevk at opera.com>
> wrote:
> 
> > I think the specification should be clearer about what happens when an 
> > <area> element is added or removed. When an <img> element is added 
> > with a usemap="". When the shape="" attribute is altered, et cetera. 
> > Either by handling each case specifically or stating in general that 
> > the specified algorithms always apply or something.

The spec says: "Image maps are live; if the DOM is mutated, then the user 
agent must act as if it had rerun the algorithms for image maps."


> Isn't it implied that any modification to the DOM tree should be 
> equivalent to replacing the document with another one which would parse 
> into the resulting DOM? If not, maybe it's worth specifying that this 
> holds true unless explicitly stated otherwise.

I don't think this is necessarily true. Replacing a document with another 
one has all sorts of implications that are quite complex.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 1 June 2007 15:43:53 UTC