[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#475594: command line file1 influences file2

X-Debbugs-Cc: liam@htmlhelp.com
Package: wdg-html-validator
Version: 1.6.2-6
File: /usr/bin/validate

If one gives more than one file on the command line, it's doctype ends
up influencing the processing of subsequent files.

If the program was correct, then no matter what order the files are
given, the results should be the same.

$ set comp/configuration/index.html index_en.html
$ validate -w $1 $2|head -n 2
*** Errors and warnings validating index_en.html: ***
index_en.html:82:5:W: comment in parameter separator
$ validate -w $2 $1|head -n 2
$ grep DOC $@
comp/configuration/index.html:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
index_en.html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

Bug seen when one uses -w.
By the way, there is no line 82 so it is really off its rocker.

$ wc $@
  14   26  386 comp/configuration/index.html
  32   95 1309 index_en.html
  46  121 1695 total
$ more $@|cat
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml";>
<meta name="generator" content="HTML::TextToHTML v2.50"/>
<p><a href=".emacs">.emacs</a><br/>
<a href=".gnus.el">.gnus.el</a><br/>
<a href=".muttrc">.muttrc</a></p>

<html lang="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
<title>Dan Jacobson</title>
<h1>Dan Jacobson</h1>
<p><img src="images/20051014dan_small.jpg" alt=
"[Photo: Dan Jacobson]" width="92" height="129"></p>
<li><a href="index_en.html">ENGLISH ONLY</a> auto-stripped version
<li><a href="index.html">Chinese+English</a> version.</li>
<p><a href="http://radioscanningtw.jidanni.org/";>Taiwan Radio
Scanning Wiki</a>; <a href=
"http://taizhongbus.jidanni.org/";>Taizhong Bus Wiki</a>; <a href=
"geo/taipower/index_en.html">Positioning by utility pole</a>;
<a href="geo/house_numbering/index_en.html">Address planning</a>;
<a href="lang/pinyin/index_en.html">Go Hanyu Pinyin, No Tongyong
Pinyin romanization</a>; <a href="geo/index_en.html">Mapping</a>;
<a href="comp/index_en.html">Computers</a>; <a href=
"foreigner/index_en.html">Not allowed to be Taiwanese</a>; <a href=
"sitemap-en.html">Website map</a>; <a href="me/index_en.html">About
<p><a href="mailto:jidanni@jidanni.org";>jidanni@jidanni.org</a>
<a href="contact.html">+886-4-25854780 Dongshi, Taiwan</a></p>

Reply to: