473,795 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How important is validation?

I have a web site that, due to maintenance by several people, some of whom are
fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point
where I'm pretty sure it's suffering from bit rot. Though the pages seem to
display okay under IE and FF, I really think it's time for an under-the-hood
cleaning. I recently received a copy of Molly Holzschlag's "Spring Into HTML
and CSS," and in the first chapter, she makes a big deal of producing pages
that validate cleanly. However, she doesn't explain why this is important,
e.g., doesn't say what the consequences of validation failure are.

I went to http://validator.w3.org/ and was unsurprised to see my home page
fail to validate. But then I got to playing around, and I found that the home
pages for none of the following validate, either: yahoo, ebay, google, artima,
and cnn. This makes me wonder whether validation is really something I need
to worry about. Morally, I'm all for standards, and given a choice between
pages that validate and those that do not, I'd choose validation, but I'm
going to have to find somebody else to do the work for me (somebody who DOES
know about HTML and CSS, etc.), and I'm worried that finding somebody who is
familiar with validation is going to be a lot harder and/or more expensive
than finding somebody who is not.

Can somebody please explain to me what the practical advantages of having
pages validate are? Also, I'm open to suggestions on who to consider hiring
to do the work at my site (which happens to be aristeia.com).

Thanks,

Scott
Aug 13 '05
67 5354
On Mon, 15 Aug 2005 11:50:42 +0100, in
comp.infosystem s.www.authoring.html , "Alan J. Flavell"
<fl*****@ph.gla .ac.uk> in
<Pi************ *************** ***@ppepc56.ph. gla.ac.uk> wrote:

[snip]

Well, I'm sorry, but from my point of view, markup syntax validation
is a natural part of the QA process for web publishing; I don't feel I
need to justify it, any more than I'd need to justify checking the
spelling of the content, or making a reasonable effort to verify the
facts which I'm going to report on the page.


Everyone in this thread seems to be assuming that the code was hand
generated. If so, then I agree that validation is crucial. But if the
code is developed in either a home grown or standard high level tool,
then validation is less important. I am currently working on some
Perl/Javascript tools that are going to output web pages (html and
css). I want those to produce valid code, but it is more important
that it produces the right result (and result is defined as what the
customer sees). If I end up having some validation bug, but get the
right customer view, I will accept that. I am certainly not going to
go back and fix the resulting html, that is impossible.

A similar case applies for some standard tool. Yes, FrontPage is
garbage, but if, say, Dreamweaver produced some invalid code, that
would be fine. It is more important to have a product that is easy to
modify, which means no hand coding, than one that meets validation. (I
have no idea if Dreamweaver ever produces invalid code. It might not,
my point still stands.)
--
Matt Silberstein
And now our bodies are oh so close and tight
It never felt so good, it never felt so right
And we're glowing like the metal on the edge of a knife
C'mon! Hold on tight!
C'mon! Hold on tight!

Though it's cold and lonley in the deep dark night
I can see paradise by the dashboard light
Paradise by the dashboard light

Jim Steinman
Aug 16 '05 #51
On Tue, 16 Aug 2005, Matt Silberstein wrote:
On Mon, 15 Aug 2005 11:50:42 +0100, in
comp.infosystem s.www.authoring.html , "Alan J. Flavell"

Well, I'm sorry, but from my point of view, markup syntax validation
is a natural part of the QA process for web publishing; I don't feel I
need to justify it, any more than I'd need to justify checking the
spelling of the content, or making a reasonable effort to verify the
facts which I'm going to report on the page.
Everyone in this thread seems to be assuming that the code was hand
generated.


Not really. If I found that I was using a process which generated
invalid code, I'd do whatever was necessary to that process to make
sure it generated valid code. In fact I've often done it with
inherited CGI programs which emit HTML that proved to be unacceptable
to my QA standards.

[...] but if, say, Dreamweaver produced some invalid code, that
would be fine.
Not by me. On the rare occasions when our principal author of
official web pages (who used DW) turned-in code that failed
validation, I (as server admin) had a quiet word with him, and he
corrected it without argument. Recalling that we are bound by UK law
to produce accessible pages, failure of syntax validation is a black
mark against the WAI guidelines, even for those who can't find any
other reason for valid syntax. But his standards were higher than
that - anyone can make an occasional mistake (including me, of
course).
It is more important to have a product that is easy to
modify, which means no hand coding,


I'd rate that as petitio principii. Depends very much on
circumstances. Say, how many authoring packages do *you* know which
understand that a block of quoted text is a <blockquote> without the
author ever telling them?

best regards
Aug 16 '05 #52
On Tue, 16 Aug 2005 18:55:22 +0100, in
comp.infosystem s.www.authoring.html , "Alan J. Flavell"
<fl*****@ph.gla .ac.uk> in
<Pi************ *************** ****@ppepc56.ph .gla.ac.uk> wrote:
On Tue, 16 Aug 2005, Matt Silberstein wrote:
On Mon, 15 Aug 2005 11:50:42 +0100, in
comp.infosystem s.www.authoring.html , "Alan J. Flavell"
>
>Well, I'm sorry, but from my point of view, markup syntax validation
>is a natural part of the QA process for web publishing; I don't feel I
>need to justify it, any more than I'd need to justify checking the
>spelling of the content, or making a reasonable effort to verify the
>facts which I'm going to report on the page.


Everyone in this thread seems to be assuming that the code was hand
generated.


Not really. If I found that I was using a process which generated
invalid code, I'd do whatever was necessary to that process to make
sure it generated valid code. In fact I've often done it with
inherited CGI programs which emit HTML that proved to be unacceptable
to my QA standards.


It is the "whatever was necessary" that I take (some) issue with. I
agree, of course, that good code is important and passing validation
is an important step. How much work to fix what problems is a question
of art.

That said, after I posted what I did, I thought more about it and I am
not sure how far I can go to defend it. In principle I think I was
right, but I can't think of a non-contrived test case. If I have made
code that then generates a page, and that generated page does not pass
validation, I would worry that some other bugs are in the generator.
Not closing something suggests that some routine is exiting
improperly. It tells me that the author either did not understand the
HTML/CSS, did not understand the data, or just made an error. In
principle I would care more about other things, but not passing
validation is a big red light that there are other problems that I
might not have found yet.

[snip]
--
Matt Silberstein
And now our bodies are oh so close and tight
It never felt so good, it never felt so right
And we're glowing like the metal on the edge of a knife
C'mon! Hold on tight!
C'mon! Hold on tight!

Though it's cold and lonley in the deep dark night
I can see paradise by the dashboard light
Paradise by the dashboard light

Jim Steinman
Aug 16 '05 #53
Henri Sivonen <hs******@iki.f i> wrote:
Petr Nalevka has developed (building on James Clark's work) RELAX NG and
Schematron schemas that express more constraints than the HTML and XHTML
DTDs. His validator is available at http://badame.vse.cz/validator/


As I and many others here tell people who call CSE a validator, there is
only one requirement for a document to be valid: it must comply with the
requirements as set out in the document's DTD.

Although fundamentally different from CSE,
http://badame.vse.cz/validator/ is therefore equally not a validator and
shouldn't be labeled or referred to as such.

--
Spartanicus
Aug 16 '05 #54
In article
<92************ *************** *****@news.spar tanicus.utvinte rnet.ie>,
Spartanicus <in*****@invali d.invalid> wrote:
there is only one requirement for a document to be valid: it must comply with the
requirements as set out in the document's DTD. .... http://badame.vse.cz/validator/ is therefore equally not a validator and
shouldn't be labeled or referred to as such.


"Valid" in the SGML and XML specifications is indeed defined to mean the
condition that the document conforms to the DTD it declares for itself.

However, the RELAX NG and Schematron specifications use the word "valid"
to describe the condition that a document conforms to a RELAX NG or
Schematron schema, respectively. http://badame.vse.cz/validator/ and
http://hsivonen.iki.fi/validator/ are validators in the RELAX NG and
Schematron senses of the word.

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Aug 16 '05 #55
On Wed, 17 Aug 2005 00:04:15 +0300, Henri Sivonen <hs******@iki.f i>
wrote:
In article
<92*********** *************** ******@news.spa rtanicus.utvint ernet.ie>,
Spartanicus <in*****@invali d.invalid> wrote: [...]
"Valid" in the SGML and XML specifications is indeed defined to mean the
condition that the document conforms to the DTD it declares for itself.

However, the RELAX NG and Schematron specifications use the word "valid"
to describe the condition that a document conforms to a RELAX NG or
Schematron schema, respectively. http://badame.vse.cz/validator/ and
http://hsivonen.iki.fi/validator/ are validators in the RELAX NG and
Schematron senses of the word.


Then stop using the words "valid" and "validator" in relation to those
products, it would help to avoid confusion for many.

--
Rex
Aug 16 '05 #56
Henri Sivonen <hs******@iki.f i> wrote:
there is only one requirement for a document to be valid: it must comply with the
requirements as set out in the document's DTD.

...
http://badame.vse.cz/validator/ is therefore equally not a validator and
shouldn't be labeled or referred to as such.


"Valid" in the SGML and XML specifications is indeed defined to mean the
condition that the document conforms to the DTD it declares for itself.

However, the RELAX NG and Schematron specifications use the word "valid"
to describe the condition that a document conforms to a RELAX NG or
Schematron schema, respectively. http://badame.vse.cz/validator/ and
http://hsivonen.iki.fi/validator/ are validators in the RELAX NG and
Schematron senses of the word.


But http://badame.vse.cz/validator/ is incorrect to call itself a
*HTML* validator right?

(it's actually called *the* HTML validator, but lets be kind and put
that down to their rather limited command of English)

--
Spartanicus
Aug 16 '05 #57
Scott Meyers wrote:
I have a web site that, due to maintenance by several people, some of whom are
fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point
where I'm pretty sure it's suffering from bit rot.


Scott,

I can confirm your suspicion. I viewed your site with Netscape 7.1 on a
600 X 800 display with the browser at full-screen size and Text Zoom set
to 100% (original size). Looking at the navigation on the left side of
the screen, the last item visible to me was "Articles & Interviews", the
last word of which was clipped at the bottom of the window. There was
no way to scroll this area of the page. Only by using the browser to
reduce the text size was I able to see the next three links. The bit
rot has become visible from the outside...

Chris Beall

Aug 17 '05 #58
On Wed, 17 Aug 2005 01:03:16 GMT, Chris Beall wrote:
I can confirm your suspicion. I viewed your site with Netscape 7.1 on a
600 X 800 display with the browser at full-screen size and Text Zoom set
to 100% (original size). Looking at the navigation on the left side of
the screen, the last item visible to me was "Articles & Interviews", the
last word of which was clipped at the bottom of the window. There was
no way to scroll this area of the page. Only by using the browser to
reduce the text size was I able to see the next three links. The bit
rot has become visible from the outside...


Actually, this isn't bit rot, it's an implementation error that nobody
brough to my attention for five years. The nav frame was supposed to be
set up to sprout a scroll bar if it was longer than the available screen
real estate, but apparently that never got implemented. My guess is that
nobody noticed, because nobody in my world runs at 800x600 or less. That's
not meant to be an excuse, just an explanation.

My concern about bit rot has more to do with the mixture of <p> and <br>
and CSS and empty table rows and who-knows-what to achieve display goals,
e.g., desired vertical spacing between elements, font changes, etc. My
feeling is that all that stuff should be cleaned up and made consistent,
and as long as we're degunking the thing, we should take the opportunity to
address some likely design errors (e.g., use of frames), implementation
mistakes (such as the one you mentioned), and generally spiff things up.
Also maybe shoot for code that validates.

All I have to do is find somebody to do the work :-)

Scott

Aug 17 '05 #59
In article <ig************ *************** *****@4ax.com>,
Jan Roland Eriksson <jr****@newsguy .com> wrote:
On Wed, 17 Aug 2005 00:04:15 +0300, Henri Sivonen <hs******@iki.f i>
wrote:

However, the RELAX NG and Schematron specifications use the word "valid"
to describe the condition that a document conforms to a RELAX NG or
Schematron schema, respectively. http://badame.vse.cz/validator/ and
http://hsivonen.iki.fi/validator/ are validators in the RELAX NG and
Schematron senses of the word.


Then stop using the words "valid" and "validator" in relation to those
products, it would help to avoid confusion for many.


Have you already contacted James Clark and complained about the use of
the words "valid" and "validator" in relation to the RELAX NG spec and
Jing? Or the ISO committees that accepted RELAX NG and Schematron?

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Aug 17 '05 #60

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2864
by: bissatch | last post by:
Hi, I am running a w3c CSS validation check on a site in development. I have many errors saying that my CSS is not valid because I have not defined the background-color but instead left it default transparent. Why does it require that every CSS defined element have their background-color defined? Also, when I set styles in the following way:
0
3844
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested for the first time versus when the form is posted (sent to the server), which allows you to program accordingly. · What are user controls and custom controls? Custom controls: A control authored by a user or a third-party software vendor that...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.