On Feb 19, "Burton M. Strauss III" wrote: > > 2. As much as I hate mozilla for doing it, it does not display a tooltip > > for "ALT" tags in images, only for "TITLE" tags. They have made an > > argument that displaying tooltips for ALT tags is non-w3c compliant. I > > won't go into all the crap here, but if ntop provided the text as both a > > TITLE and ALT, it would display properly under mozilla. Thanks for > > considering it. > > Yeah and then the generated html would fail w3c validation! > > http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html#h-13.2
Did you try it? :) I dl'd index.html form mozilla.org, added a title to one of the images and it did validate. > 13.2 Including an image: the IMG element > <!-- To avoid problems with text-only UAs as well as > to make image content understandable and navigable > to users of non-visual UAs, you need to provide > a description with ALT, and avoid server-side image maps --> > <!ELEMENT IMG - O EMPTY -- Embedded image --> > <!ATTLIST IMG > %attrs; -- %coreattrs, %i18n, %events -- > src %URI; #REQUIRED -- URI of image to embed -- > alt %Text; #REQUIRED -- short description -- > longdesc %URI; #IMPLIED -- link to long description > (complements alt) -- > name CDATA #IMPLIED -- name of image for scripting -- > height %Length; #IMPLIED -- override height -- > width %Length; #IMPLIED -- override width -- > usemap %URI; #IMPLIED -- use client-side image map -- > ismap (ismap) #IMPLIED -- use server-side image map -- > > > > > Start tag: required, End tag: forbidden > > > Title isn't even OPTIONAL, it's so it's not permitted. Even a design tool > as lenient as HomeSite 5 doesn't have any provision for it. Actually, you've misinterpreted something here. The tags you list above are tags *specific* to img. "title" is, in fact, valid for all but a few tags, as indicated below: http://www.w3.org/TR/REC-html40/index/attributes.html The purpose of the title tag is described here: http://www.w3.org/TR/REC-html40/struct/global.html#adef-title Mozilla's position on the issue is written up here: http://www.mozilla.org/docs/web-developer/faq.html#alttooltip > Even the graphics on Mozilla's own pages don't use title: > > <img > src="http://www.mozilla.org/products/firefox/buttons/getfirefox_large2.png" > width="178" height="60" border="0" alt="Get Firefox"> A good point :) I assume that mozilla.org doesn't wish to title those images for aesthetic reasons. I have friends who hate the pop-up tooltips, and I assume mozilla.org's authors are of their mindset. (This all got started from me trying to figure out one of the host-profiling icons...which are totally awesome BTW.) While I don't agree with mozilla's zealousness on this point, I believe they are technically correct. Especially in light of mozilla's motivation -- better accessibility for disabled users -- I think that it would be worth it for ntop to incorporate the title tag, and I hope you and Luca will consider it. Mike _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
