W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re: Support Existing Content

From: Martijn <martijn.martijn@gmail.com>
Date: Wed, 2 May 2007 00:22:30 +0200
Message-ID: <6c97b8b10705011522s1a7d8e30ue3f3c9ae0d2f4880@mail.gmail.com>
To: "Maciej Stachowiak" <mjs@apple.com>
Cc: "T.V Raman" <raman@google.com>, roger@456bereastreet.com, public-html@w3.org

2007/5/1, Maciej Stachowiak <mjs@apple.com>:
> <http://www.whatwg.org/specs/web-apps/current-work/#the-img>
> If the alt attribute is omitted, user agents must treat the element
> as if it had an alt attribute set to the empty string."

It seems that in that case, this should return true:
<img>
<script>
alert(document.images[0].hasAttribute('alt'));
</script>

Am I correct? (not sure if that's a good idea, though)

Regards,
Martijn
Received on Tuesday, 1 May 2007 22:22:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:44 UTC