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

bug in div counting/pairing?

From: Aryeh M. Friedman <aryeh.friedman@gmail.com>
Date: Fri, 31 Jul 2009 14:01:47 -0400
Message-ID: <4A73318B.8000805@gmail.com>
To: www-validator@w3.org
I manually checked (and with the commands below) to make sure that the 
attached html (the actual page is under active development so a link 
would might not cause the bug):

Error:

1. Warning Line 74, Column 2: unclosed start-tag requires SHORTTAG YES

<div class="userProfileBox">

The construct <foo<bar> is valid in HTML (it is an example of the rather 
obscure “Shorttags” feature) but its use is not recommended. In most 
cases, this is a typo that you will want to fix. If you really want to 
use shorttags, be aware that they are not well implemented by browsers.

I verified that they div's are infact matching by a vim macro and the 
following command line:~/isu.1.1.C021:aryeh@locke% grep '<div' 
site/userProfile.html|wc -l
41
~/isu.1.1.C021:aryeh@locke% grep '</div' site/userProfile.html | wc -l
41

Here is the source (yes most of it is generated by an in house tool we 
use [this is the only output that has not validated when there was no 
bug in the tool]):

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<meta http-equiv="Content-Script-Type" content="text/ecmascript">
                <link rel="STYLESHEET" type="text/css" href="/css/master.css">
		<title> ISU FAQ </title>
		<script type="text/ecmascript" src="/javascript/utils.js"></script>

<script type="text/ecmascript" src="/javascript/rci.js"></script>
<script type="text/ecmascript" src="/javascript/visualElements.js"></script>

<script type="text/ecmascript" src="/javascript/utils.js"></script>
<script type="text/ecmascript" src="/javascript/rci.js"></script>
<script type="text/ecmascript" src="/javascript/visualElements.js"></script>

<script type="text/ecmascript" src="/javascript/navBar.js"></script>

<script type="text/ecmascript" src="/javascript/utils.js"></script>

<script type="text/ecmascript" src="/javascript/rci.js"></script>
<script type="text/ecmascript" src="/javascript/visualElements.js"></script>

<script type="text/ecmascript" src="/javascript/tbb.js"></script>

<script type="text/ecmascript" src="/javascript/utils.js"></script>
<script type="text/ecmascript" src="/javascript/rci.js"></script>
<script type="text/ecmascript" src="/javascript/visualElements.js"></script>

<script type="text/ecmascript" src="/javascript/utils.js"></script>

<script type="text/ecmascript" src="/javascript/rci.js"></script>
<script type="text/ecmascript" src="/javascript/visualElements.js"></script>

<script type="text/ecmascript" src="/javascript/form.js"></script>

<script type="text/ecmascript" src="/javascript/faqQuestions.js"></script>

<script type="text/ecmascript" src="/javascript/faq/loadScript.js"></script>

	</head>

	<body onload="javascript:onLoad();">
		<div class="hidden">
			<address>IStudentUnion</address>
		</div>
		<div class="wrapperContent">
			<div class="topBar">
	<div class="topBarInner">
	<div class="logo">

		<a href="/index.html" title="go to ISU home page">
			<img src="/images/logo.jpg" alt="ISU Logo -- click to go to home page">
		</a>
	</div>

	<div class="searchBar">
	<form action="">
	<div class="inlineFormCell">
		<label for="searchValue"> Search </label> 
		<input type="text" name="searchValue" id="searchValue" value="search term">

	</div>
</form>

</div>

</div>

	<div class="navBar">
	</div>
</div>


<div class="uniqueContent">
	<div class="faqTextArea">

	<div class="contactTextLinks">
	
	
	<div class="tabBarBox">
	<div class="tab">
		Help Links
	</div>
	<div class="bar"></div>
	<div class="tbbContent">
		
	</div>
</div>

</div>

</div>

<div class="faqQuestionBox">
	
	<div class="faqQuestions">
	
	<div class="tabBarBox">
	<div class="tab">
		FAQs
	</div>
	<div class="bar"></div>
	<div class="tbbContent">

		<div class="widgetTitle">
	Read and Answer Questions
</div>
<div class="faqHeader">
	<div class="faqCatagory" id="40">
		<div class="faqCatHeader">
			Question
		</div>
		<div class="faqCatThreads">
		</div>

	</div>
	<div class="faqCatagory" id="41">
		<div class="faqCatHeader">
			Feature Requests
		</div>
		<div class="faqCatThreads">
		</div>
	</div>
	<div class="faqCatagory" id="42">

		<div class="faqCatHeader">
			Bugs
		</div>
		<div class="faqCatThreads">
		</div>
	</div>
	<div class="faqCatagory" id="43">
		<div class="faqCatHeader">
			Why I can't do something
		</div>

		<div class="faqCatThreads">
		</div>
	</div>
</div>
<div class="faqUserArea">
	<form method="post" onsubmit="sendQuestion(); return false;" action="javascript:sendQuestion();" id="questionForm">
		<div class="formRow">
			<label for="cat">Ask a question?</label>
			<select id="cat">

				<option value="40"> Questions </option>
				<option value="41"> Feature Requests </option>
				<option value="42"> Bugs </option>
				<option value="43"> Why I can't I do something </option>
			</select>

		</div>
		<div class="formRowCell">
			<input type="text" name="title" id="title" value="Question Title">
			<label for="title"> Question Title </label>
		</div>
		<div class="formRowCell">
			<textarea name="question" rows="2" cols="80" id="question">
			</textarea>

			<label for="question"> Your Question </label>
		</div>
		<div class="floatLeft">
			<input type="reset" id="reset" value="Clear Text">
			<label for="reset"> Clear Text</label>
		</div>
		<div class="floatRight">

			<input type="submit" id="submit" value="Ask!">
			<label for="submit"> Ask! </label>
		</div>
	</form>
</div>

	</div>
</div>

</div>

</div>

</div>
		<div class="bottomBar">
	<div class="copyright">
		Copyright &copy; 2009. McNeill Communications, LLC.  All Rights Reserved.

		<div class="bottomLinks">
			<a href="/bug.html" title="Report a Bug"> Report a Bug </a>

		</div>
	</div>

	<div class="bottomCap">
		<a href="/index.html" title="ISU Home Page (bottom link)">
			<img src="/images/footer-cap.gif" alt="bottomCap">
		</a>
	</div>
</div>

		</div>
	</body>
</html>
Received on Monday, 3 August 2009 09:29:33 GMT

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