Re: [Moderator Action] Document outline

# 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 UTC