882 xHTML errors

nzseriocomic
nzseriocomic's picture

Joined: 2004-07-20
Posts: 15
Posted: Fri, 2005-03-11 13:36

I might be wrong, but dreamweaver (using find and replace on ' "/> ') found 882 instances of incorrectly closed tags in 852 documents.

I did this search after I noticed that some IMG tags and INPUT tags were incorrectly closed i.e. <img src=""/> rather than the correct <img src="" />

A simple search and replace before the next nightly will fix this...unless I am wrong...

 
nzseriocomic
nzseriocomic's picture

Joined: 2004-07-20
Posts: 15
Posted: Fri, 2005-03-11 13:37

oh, and if there's a better place to put this let me know

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-11 16:19

validator.w3.org doesn't report that as an error.. why do you need a space before /> ?

 
nzseriocomic
nzseriocomic's picture

Joined: 2004-07-20
Posts: 15
Posted: Fri, 2005-03-11 22:22

1stly, half of them are xsl, and may not be errors.

The space before the forward slash is not strictly necessary when using the latest browser versions, but for maximum compatibility with older browsers, the space should always be included.

See:
http://www.kcl.ac.uk/humanities/cch/ay1003/electronic_publishing/module/mod_basics.html
http://www.blackwidows.org.uk/resources/tutorials/xhtml/common-errors.html

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-03-12 07:20

Is there an alternate validator to validator.w3.org that we can use to catch these?

 
ill
ill's picture

Joined: 2002-08-15
Posts: 756
Posted: Sun, 2005-03-13 13:47
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-03-13 14:01

i guess this is html 4 only. it complains about pretty every tag that has no closing tag like <link ...../>, <br />, <img ../>, etc.