I remember that I have reported this ~2 years ago. :)

If you need JavaScript validation I would suggest following links.

qForms
http://www.pengoworks.com/index.cfm?action=get:qforms

TMT Validator
http://www.massimocorner.com/validator/



Dave Watts wrote:
>> I hate to gripe again, I really do, but it seems that once I 
>> get hooked on another CF feature like xForms, somethin rears 
>> its ugly head. 
>>
>> CF sticks this right above the form:
>> <link href="/CFIDE/scripts/css/blue_style.css" 
>> rel="stylesheet" type="text/css" media="all"/>
>>
>> validator.w3.org LOVES this. It gives me a pretty red FAILED flag. 
>> Error  Line 113 column 92: document type does not allow 
>> element "link" here.
>>
>> So to the CF team, please check these things when developing 
>> future versions. Stop  CF from generating invalid code. 
>>
>> With that rant said, how can I get around it without ditching 
>> my fun xForms??
>>     
>
> You can't, you griping bastard. Just kidding. Well, just kidding about the
> "griping bastard" bit.
>
> Historically, CFFORM (and CF code generating tools in general) have never
> been very good about generating valid HTML. Believe it or not, it's a lot
> better now than it used to be in this regard. Unfortunately, better isn't
> necessarily good enough - your HTML is either valid or not.
>
> Without getting into whether you should care or not, the only option I can
> see is to perform some sort of post-processing to move the LINK where it
> belongs. You could do that with a post-processing servlet, or by using the
> onRequest event to capture and rewrite your generated code. Both approaches
> will be relatively difficult, but are certainly achievable if it's important
> enough.
>
> I suggest that you submit this as a bug to Adobe.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>   


-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Oğuz Demirkapı

TeraTech Inc. | Senior Developer
405 East Gude Dr Suite 207, Rockville, MD 20850, USA
Voice: +1 (301) 424-3903 ext 111 | Fax: +1 (301) 762-8185
Web: http://www.teratech.com | E-mail: oguz.demirkapi <AT> teratech.com
Winner in CFDJ awards Best Consulting. Member Team Fusebox.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272200
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