Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • Videos
  • Most Popular
  • Top Categories
  • Books
  • About Dave
  • Ask Me
  • > Donate <
  • Home
  • HTML & Web Page Design
  • A cautionary tale about xhtml validators

A cautionary tale about xhtml validators

January 4, 2004 / Dave Taylor / HTML & Web Page Design / 13 Comments

I’ve been continuing to tweak the pages at RealLifeDebt.com and have wanted to ensure that the xhtml coding was all proper and correct. So, logically, I turned to the W3C online validator, but kept hitting this one error:

Below are the results of attempting to parse this document with an SGML parser.

Line 195, column 45: there is no attribute “onClick”
    <input type=”button” value=” solve ” onClick=”myPaymentCalc()”

Round and around I went until it dawned on me (thanks to a quick web search) that the problem wasn’t that there’s no attribute onclick, but that there’s no attribute onClick: the ‘C’ can’t be capitalized! I fixed that, and now can happily add:

Valid XHTML 1.0!

to the site. But… sheesh, what a poor error message!

Let’s Stay In Touch!

Never miss a single article, review or tutorial here on AskDaveTaylor, sign up for my fun weekly newsletter!
Name: 
Your email address:*
Please enter all required fields
Correct invalid entries
No spam, ever. Promise. Powered by FeedBlitz
Please choose a color:
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

13 comments on “A cautionary tale about xhtml validators”

  1. Lee R. says:
    March 7, 2017 at 4:29 am

    A very informative read, helped me out tons, thanks

    Reply
  2. john says:
    November 12, 2008 at 8:54 pm

    Oh what good news. Until you open the file in Dreamweaver again…

    Reply
  3. Nitecore says:
    September 25, 2008 at 3:34 pm

    Thank you!
    Why does dreamweaver do this?
    I think it’s time I learnt to code by hand.

    Reply
  4. Fenix Webmaster says:
    August 24, 2007 at 3:33 pm

    I can’t thank you enough and just wish I had searched for the answer hours ago.
    Dreamweaver 8 capitalised the onLoad, oClick and onMouseOver on all links in the navigation bar.
    Only one more error to fix!

    Reply
  5. John says:
    August 22, 2007 at 6:54 pm

    Well your old article is still helping people, namely me. You just solved my problem in a heart beat.
    Thanks for archiving!

    Reply
  6. OMA says:
    June 6, 2007 at 4:15 am

    CAUTION!: Dreamweaver 8 automatically capitalizes all onclick, onchange, and such events, in just the very moment you open the file!!! I hate when editors change code without any notice, specially when the changes are wrong, like this.
    OMA

    Reply
  7. sidnei dasilva says:
    May 3, 2007 at 2:41 pm

    Thanks so much for this article; I was facing the same problem. W3C actually specifies that in XHTML everything must be lowercase, but I guess I need to find your article to realize this simple thing… thanks!
    -Sidnei

    Reply
  8. Heather says:
    July 30, 2006 at 12:44 pm

    Thank you thank you THANK YOU! Stupid capitalized C, wasting an hour of my time…

    Reply
  9. reid says:
    May 18, 2005 at 1:33 pm

    WOW amazing help when i’m coding at 5:30am before my assignment is due in 7 hours. you’re a genius. thanks SO MUCH

    Reply
  10. Dave T. says:
    March 8, 2004 at 9:52 pm

    This isn’t the first time I’ve wondered why these validators do such a miserable job of error messages. Seems like instead of just spitting out “INVALID XML STRUCTURE” or something they could actually have some smarts…
    Interesting, twenty years ago while working at HP R&D Labs in Palo Alto (across the street from Stanford, actually) I remember reading these excellent research reports out of IBM’s Thomas J. Watson Research Center all about what makes a good error message. And here we are, all this time later, and developers still aren’t paying attention…

    Reply
  11. Mr. X says:
    March 8, 2004 at 8:42 pm

    Damn… After 20 mn pulling my hair with the validator, I Googled another 20 mn to find your post. Sure enough… I had capitalized the “C”
    I hate when I’m that stupid… Thank god you were here to put me back on track. Thanks a ton!
    Back to work…

    Reply
  12. Dave Taylor says:
    February 11, 2004 at 6:30 pm

    Glad to help. You might well be interested in a copy of my upcoming book “Creating Cool Web Sites with HTML, XHTML and CSS” (Wiley, coming out in April 2004) wherein I talk at length about why and how to validate pages and style sheets.

    Reply
  13. Sven says:
    February 11, 2004 at 3:52 pm

    Whoa — so that’s the solution. After a couple hours with that error message I decided to google for it and promptly found your message up there. Phew. Thanks. 🙂

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Recent Posts

  • Speed up your PC by Reinstalling Windows 10 with the Win10 “Fresh Start” Tool
  • Can I Copy and Backup My Facebook Posts to Google Drive?
  • How to Get Screen Captures in ChromeOS on a Chromebook?
  • Is There a Way to Scan And Paste OCR’d Text within Android?
  • How Can I Remove All Colors From A Graphic Logo?

On Our YouTube Channel

New Watches Purchased on Alibaba.com: The Unboxing!

One by Wacom -- Student Drawing Tablet -- DEMO & REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon Echo & Kindle Help (79)
  • Amazon, eBay, and Online Shopping Help, (158)
  • Android Help (162)
  • Apple Watch Help (49)
  • Articles, Tutorials, and Reviews (329)
  • Business Advice (193)
  • Computer & Internet Basics (728)
  • d) None of the Above (160)
  • Facebook Help (367)
  • Google, Chrome & Gmail Help (159)
  • HTML & Web Page Design (243)
  • Instagram Help (44)
  • iPad Help (137)
  • iPhone & iOS Help (573)
  • iPod & MP3 Player Help (173)
  • LinkedIn Help (79)
  • Linux Help (150)
  • Linux Shell Script Programming (86)
  • Mac & MacOS Help (838)
  • Most Popular (14)
  • Outlook & Office 365 Help (14)
  • PayPal Help (68)
  • Pinterest Help (53)
  • Reddit Help (13)
  • SEO & Marketing (80)
  • Spam, Scams & Security (85)
  • Trade Show News & Updates (23)
  • Twitter Help (212)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows 10 Help (837)
  • Wordpress Help (202)
  • Writing and Publishing (72)
  • YouTube Help (43)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (45)

Archives

Social Connections:

Ask Dave Taylor


Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook



microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2020 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy