W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: Image() objects and the DOM

From: <keshlam@us.ibm.com>
Date: Mon, 3 Aug 1998 12:58:23 -0400
To: www-dom@w3.org
Message-ID: <85256655.005CBF97.00@us.ibm.com>
>If my page contains:
>  foo = new Image()
>  foo.src = "foo.jpg"

I presume you mean your page contains Javascript code...? As far as the DOM
is concerned, that's just going to be a block of text. The application
(browser or whatever) would be responsible for any interpretation,
execution, and/or storage of Javascript -- either by overloading the DOM or
by maintaining data structures alongside it.

> <img name="foo" src="foo.jpg">

I haven't looked at the HTML support, but I think it's the same answer:
The DOM itself stores this as an Element with Name and Src attributes. Any
additional info is the application's responsibility.
Received on Monday, 3 August 1998 13:05:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC