Re: Regex help - matching invalid xhtml

2008-12-03 Thread Dominic Watson
Any reason not to be using the XHTML parsers out there on the produced output?

Dominic

2008/12/3 Will Tomlinson [EMAIL PROTECTED]:
 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:316174
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help - matching invalid xhtml

2008-12-03 Thread Dominic Watson
NVM, of course there is eh, you can auto fix them with CF right...

Dominic

2008/12/3 Dominic Watson [EMAIL PROTECTED]:
 Any reason not to be using the XHTML parsers out there on the produced output?

 Dominic

 2008/12/3 Will Tomlinson [EMAIL PROTECTED]:
 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:316175
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help - matching invalid xhtml

2008-12-03 Thread Andy Matthews
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


Re: Regex help - matching invalid xhtml

2008-12-03 Thread Will Tomlinson
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 value of that variable output DOES contain quotes. I just need my regex to 
do what is required by my company. 

Well, I need to match what's considered to be invalid at my place of work. :)

Thanks,
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:316190
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help - matching invalid xhtml

2008-12-03 Thread Andy Matthews
Gotcha.

:) 

-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2008 9:04 AM
To: cf-talk
Subject: Re: Regex help - matching invalid xhtml

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 value of that variable output DOES contain quotes. I just need my regex
to do what is required by my company. 

Well, I need to match what's considered to be invalid at my place of work.
:)

Thanks,
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:316194
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Regex help - matching invalid xhtml

2008-12-02 Thread Will Tomlinson
I've beat my head against the wall on this regex. I want to match variations of 
invalid xhtml tags. Well, I need to match what's considered to be invalid at my 
place of work. :)

WHat I've got almost works, but not quite. 

(?i)\input\s[\S\s]+[\s]*[^\s][^\/]

It doesn't match this, which is correct. 

input type=checkbox name=tbRider value=#variables.frmData.tbRider# 
#variables.frmData.frmActive# /

But it also doesnt match this, which is incorrect:

input type=checkbox name=tbRider value=#variables.frmData.tbRider# 
#variables.frmData.frmActive#/

It DOES seem to work correctly with other variations. 

Any suggestions?

Thanks!

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:316136
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help - matching invalid xhtml

2008-12-02 Thread Will Tomlinson
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:316137
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4