</body> problems

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

</body> problems

Post by roedygr » Wed Mar 19, 2014 2:27 am

I reported a problem with </body> completion earlier. Now there is a new problem. Validator does not notice
if </body></html> is missing.

here is some code:

<!-- macro JglossHead "PASV" --><!-- generated --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-CA">
<head>
<title>PASV : Java Glossary</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Author" content="Roedy Green, (250) 361-9093 of Canadian Mind Products. For email see contact page.">
<meta name="dcterms.dateCopyrighted" content="1996">
<meta name="dcterms.rightsHolder" content="Canadian Mind Products">
<meta name="Description" content="Canadian Mind Products Java & Internet Glossary : PASV">
<meta name="Generator" content="HTMLMacros with the Compactor">
<meta name="google-translate-customization" content="eeafc7b4b1a680b3-d11c84c20b455a00-g63221b879b657d29-c">
<meta name="Keywords" content="definition, glossary, introduction, Java, overview, PASV, precis, primer, Roedy Green, terminology">
<link href="../mindprod.css" type="text/css" rel="stylesheet" media="all">
<link href="../jdisplay.css" type="text/css" rel="stylesheet" media="all">
<link rel="home" href="../index.html">
<link rel="icon" href="../image/icon16/jgloss.png">
<link rel="schema.dcterms" href="http://purl.org/dc/terms/">
<link rel="alternate" type="application/rss+xml" title="Canadian Mind Products | Java Glossary"
href="http://mindprod.com/rss/jgloss.xml">
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
</head>
<body>
<div class="googlead"><script type="text/javascript">
google_ad_client="ca-pub-7275336356867641";
google_ad_slot="6855185627";
google_ad_width=180;
google_ad_height=150;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pa ... ript></div>
<div class="googletranslate"><div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit()
{new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');}
</script>
<script type="text/javascript" src="http://translate.google.com/translate_a ... ript></div>
<div class="titlejgloss"><a id="TOP"></a><h1><a id="TITLE"></a>PASV : Java Glossary</h1></div>
<div class="navbar"><a class="plain" href="../index.html#TITLE"><img src="../image/navigate/home.png"
alt="home page" width="24" height="24" align="middle"></a>
<a class="plain" href="jgloss.html"><img class="plain" src="../image/navigate/jgloss.png"
alt="go to the Java Glossary Home" width="27" height="26" align="middle"></a>
<a class="plain" href="../bgloss/bgloss.html"><img class="plain" src="../image/navigate/bgloss.png"
alt="go to the Computer Buyer&rsquo;s Glossary" width="24" height="24" align="middle"></a>
<a class="plain" href="p.html"><img src="../image/navigate/up.png"
alt="up" width="21" height="22" align="middle"></a>
<a class="plain" href="#BOTTOM"><img src="../image/navigate/tobottom.png"
alt="jump to foot of page" width="22" height="22" align="middle"></a>
<script type="text/javascript">if (document.URL.indexOf("file:")!=0){document.writeln("<div class=\"g-plusone\"><"+"/div>");}</script><a class="plain" href="http://www.google.com/search?q=PASV+Java"><img src="../image/navigate/googlesearch.png"
alt="Google search web for more information on this topic" width="22" height="22" align="middle"></a></div>
<div class="navbar"><span class="indexletters">
<a href="punct.html">punctuation</a> <a href="0-9.html">0-9</a> <a href="a.html">A</a> <a href="b.html">B</a> <a href="c.html">C</a> <a href="d.html">D</a>
<a href="e.html">E</a> <a href="f.html">F</a> <a href="g.html">G</a> <a href="h.html">H</a> <a href="i.html">I</a>
<a href="j.html">J</a> <a href="k.html">K</a> <a href="l.html">L</a> <a href="m.html">M</a> <a href="n.html">N</a> <a href="o.html">O</a>
<a href="p.html">P</a> <a href="q.html">Q</a> <a href="r.html">R</a> <a href="s.html">S</a> <a href="t.html">T</a> <a href="u.html">U</a>
<a href="v.html">V</a> <a href="w.html">W</a> <a href="x.html">X</a> <a href="y.html">Y</a> <a href="z.html">Z</a> (<a href="masterindex.html">all</a>)</span></div>
<div class="navbar"><ul class="breadcrumb"><li class="firstbreadcrumb">You are here :</li>
<li><a class="plain" href="../index.html#TITLE">home</a></li>
<li><a class="plain" href="jgloss.html">Java Glossary</a></li>
<li><a class="plain" href="p.html">P words</a></li>
<li><span class="term">PASV</span></li>
<li class="lastbreadcrumb">&nbsp;</li></ul></div>
<div class="navbar"><span class="copyright">&copy;<span class="date">1996-2014</span> Roedy Green, Canadian Mind Products</span></div>
<!-- /generated by JglossHead -->
<dl>
<dt><a id="PASV"></a>PASV</dt>
<dd> <!-- macro Acronym PASV --><!-- generated --><a class="acronymdef" href="ftp.html">PASV</a> (<span class="means"><span class="ac">Pas</span>si<span class="ac">v</span>e ftp file transfer</span>)<!-- /generated by Acronym -->
File Transfer Protocol
<div class="see"><a class="jgloss" href="ftp.html">FTP</a></div>
</dd>
</dl>
<!-- macro Foot nonmil --><!-- generated --><!-- ==== F O O T ====o==== F O O T ====o==== F O O T ====o==== F O O T ==== --><hr class="foot">
<table class="borderless"><caption>standard footer</caption>
<tbody><tr><td><a id="BOTTOM"></a>
<a class="plain" href="../index.html#TITLE"><img src="../image/navigate/home.png"
alt="CMP home" width="24" height="24" align="middle"></a><a class="plain" href="#TOP"><img src="../image/navigate/totop.png"
alt="jump to top" width="22" height="22" align="middle"></a></td>
<td class="middle"><p class="alignedright"><span class="unobtrusive">available on the web at:</span></p></td>
<td class="middle"><a class="url" href="http://mindprod.com/jgloss/pasv.html">h ... ></td></tr>
<tr><td>&nbsp;&nbsp;</td>
<td class="middle"><p class="alignedright"><span class="unobtrusive">optional Replicator mirror
<br>
of mindprod.com
<br>
on local hard disk <a class="unobtrusive" href="jdrive.html"><span class="drive">J:</span></a></span></p></td>
<td class="middle"><a class="jdrive" href="file://localhost/J:/mindprod/jgloss/pasv.html">J:\mindprod\jgloss\pasv.html</a></td></tr>
<tr><td><a class="plain" href="../index.html#TITLE"><img src="../image/logo/cmpmartylogomid.png"
alt="logo" width="89" height="113" align="middle"></a></td>
<td colspan="2"><div class="pleasefeedback">Please email your
<a class="feedback" href="../feedback/feedback.html">feedback for publication</a>,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
<a class="plain" href="../contact/contact.html">Roedy Green</a> :
<img class="mailto" src="../image/mailto/feedback.png"
alt="feedback email" width="209" height="22">.
If you want your message, your name or email kept confidential,
not considered for public posting, please explicitly specify that.
Unless you state otherwise,
I will treat your message as a letter to the editor that I may or may not publish
in the
<a class="plain" href="../feedback/feedback.html">feedback</a> section.
After that, it will be too late to retract it.
If you disagree with something I said, especially when sending an ad-hominem attack,
a rant composed mainly of obscenities or a death threat, please quote the offending passage
and cite the web page where you found it, tell me <strong>why</strong> you think it is wrong,
and, if possible, provide some supporting evidence.
I can&rsquo;t very well fix erroneous or ambiguous text if I can&rsquo;t find it.</div></td></tr>
<tr><td><a class="blogger" href="http://newbiejava.blogspot.ca/">Blog</a></td>
<td><span style="white-space:nowrap;"><span class="logo"><span class="logocaps">C</span>anadian
<span class="logocaps">M</span>ind
<span class="logocaps">P</span>roducts</span>
<br>
IP:[<span class="ip">65.110.21.43</span>]
<br>
Your face IP:[<span class="ip"><!--#echo var="REMOTE_ADDR"--></span>]</span></td>
<td rowspan="2"><div class="googleadfoot"><script type="text/javascript">
google_ad_client="ca-pub-7275336356867641";
google_ad_slot="5284935692";
google_ad_width=728;
google_ad_height=90;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pa ... ></td></tr>
<tr><td><a class="feedback" href="../feedback/feedback.html">Feedback</a></td>
<td><span class="unobtrusive">You are visitor number</span>
<span class="hitcount"><!--#exec cgi="/perl/count.pl"--></span>.</td></tr>
<tr><td colspan="3"><iframe src="foot/pasv.html" title="PSA or quotation" width="728" height="600" scrolling="auto" frameborder="0">
</iframe></td></tr></tbody></table>
<!-- </body></html> -->
<!-- /generated by Foot -->

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: </body> problems

Post by Albert Wiersch » Wed Mar 19, 2014 7:57 am

roedygr wrote:I reported a problem with </body> completion earlier. Now there is a new problem. Validator does not notice
if </body></html> is missing.
Hello,

CSE HTML Validator has been changed to allow the omission of these end tags because the omission is technically allowed by the HTML specification.

If you go to the 'Grouped' tab in the Results Window, then you should see some messages about assuming that the missing end tags were omitted. You can change these messages to errors if you want to find this issue.
Image
Albert Wiersch

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Re: </body> problems

Post by roedygr » Wed Mar 19, 2014 5:40 pm

I did as you suggested. Unfortunately the error does not show up with the others, just in grouped.

The </div> completion problem is still there.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: </body> problems

Post by Albert Wiersch » Wed Mar 19, 2014 5:53 pm

roedygr wrote:I did as you suggested. Unfortunately the error does not show up with the others, just in grouped.
Yes, the messages will still be in the Grouped tab, but they should now be errors if you changed then to errors. If you want the messages with the others, then you can go to Options->Editor Options and the Results Window page and check the option to include grouped messages in the Messages tab. That may bring other messages you don't want into the Messages tab, however.

You may be able to use a custom validator user function for more precise control, however. If you want me to try to create the TNPL code, then please let me know and I'll see what I can come up with.
roedygr wrote:The </div> completion problem is still there.
Can you supply some sample HTML and instructions on how to reproduce this problem? Thanks.
Image
Albert Wiersch

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Re: </body> problems

Post by roedygr » Wed Mar 19, 2014 10:58 pm

I posted some sample html above. Just take off the </body></html> put your cursor where </body> should be and hit </
it will autocomplete with </div> instead of </body>

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: </body> problems

Post by Albert Wiersch » Thu Mar 20, 2014 9:35 am

roedygr wrote:I posted some sample html above. Just take off the </body></html> put your cursor where </body> should be and hit </
it will autocomplete with </div> instead of </body>
Thanks. I believe I've found and fixed the problem for the next update. CSE HTML Validator was seeing the "div" start tag in a script you had in the page. It should now ignore all tags it sees in script sections when looking for a tag to end with the autocomplete feature.
Image
Albert Wiersch

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Re: </body> problems

Post by roedygr » Fri Mar 21, 2014 6:14 pm

> CSE HTML Validator was seeing the "div" start tag in a script you had in the page. It should now ignore all tags it sees in script sections when looking for a tag to end with the autocomplete feature

Are not all my divs balanced, both inside and outside scripts?

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: </body> problems

Post by Albert Wiersch » Fri Mar 21, 2014 8:22 pm

roedygr wrote:Are not all my divs balanced, both inside and outside scripts?
I think your "div" tags are balanced. CSE HTML Validator was seeing this:

Code: Select all

<script type="text/javascript">if (document.URL.indexOf("file:")!=0){document.writeln("<div class=\"g-plusone\"><"+"/div>");}</script>
It saw the start tag for "div" but not the end tag because the end tag was split into two strings: "<"+"/div>". Because CSE HTML Validator didn't see the end tag, it thought it needed to close the "div".
Image
Albert Wiersch

Post Reply