W3C home > Mailing lists > Public > www-validator@w3.org > August 2000

Re: [Moderator Action] Document outline

From: Bless Terje <link@rito.no>
Date: Wed, 16 Aug 2000 03:29:30 +0200
Message-ID: <22FD5BD2DBC5D211BE0D0008C7A4E87F02130A69@odin4.rito.no>
To: "'Thanasis Kinias'" <tkinias@asu.edu>, www-validator@w3.org
Cc: "'loop@online.no'" <loop@online.no>
# Ignore this line: ikke sensitiv (not classified)

[ Apologies for the format of this message. I'm stuck in M$ Hell! ]

Thanasis Kinias <tkinias@asu.edu> wrote:

>Morten Hustveit wrote:
>
>>In cases like <h1><img src="logo.jpg" alt="Company name"></h1>
>>shouldn't the document outline show "Company Name" instead 
>>of an empty string?
>
>IMO, too, that would be helpful.  I shouldn't think it would be too
>difficult to have the outline routine check for IMG with alt 
>within each Hx element.

Bugger! I fixed this for HTML (see
<URL:http://lists.w3.org/Archives/Public/www-validator/1999OctDec/0100.html>
), but i botched it and it won't work with XHTML (it's the annoying
case-sensitivity thing again). I've a fix in my local copy and I'll make
sure it gets in the next patch I send if Gerald doesn't get to it first.

If anyone wants to have a go at it, it's on line 854.

        } elsif ($line =~ /^AALT CDATA( .+)/) {

should be

        } elsif ($line =~ /^AALT CDATA( .+)/i) {
--------------------------------------------^

HTH, -link
Received on Tuesday, 15 August 2000 21:31:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:54 GMT