[webkit-dev] Accessing Web Kit DOM properties via Javascript

Maciej Stachowiak mjs at apple.com
Tue Jul 3 14:16:10 PDT 2007

On Jul 3, 2007, at 2:10 PM, Darin Adler wrote:

> On Jul 3, 2007, at 2:07 PM, Maciej Stachowiak wrote:
>> On Jul 3, 2007, at 1:51 PM, Andrew Murphy wrote:
>>> For example, is it possible to access the "coords" property of an  
>>> "HTMLAnchorElement" like this:
>> "coords" only applies to an HTMLAreaElement, not an  
>> HTMLAnchorElement.
> Are you sure?
> This lists coords for the anchor element: http://www.w3.org/TR/DOM- 
> Level-2-HTML/html.html

You're right, and the coords markup attribute is even allowed for A.  
Looking at the original example more closely, the result is an empty  
string because no coords attribute is set on the A element in the  
markup. coords reflects an attribute value, it does not give the true  
coordinates of the A element. coords is meant for use with client- 
side image maps, and to my knowledge only has an actual effect for  
AREA, not A.


More information about the webkit-dev mailing list