Actually, both of your examples are "invalid" according to the W3C which
states that all attributes must be quoted:
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.4

The space before the trailing /> is irrelevant, it can appear or not without
penalty:
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.6

It is however a good idea to put a space before the /> for readability.


andy

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 02, 2008 10:07 PM
To: cf-talk
Subject: Re: Regex help - matching invalid xhtml

I guess it'd be cool if I were to use (meta|input|img) in there, to flag
single tags without the trailing [space]/>

Will 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316186
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to