> 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/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to