Strange Issue with Flag 116

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
juicyroots
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Sat Sep 07, 2013 6:53 pm

Strange Issue with Flag 116

Post by juicyroots » Sat Sep 07, 2013 7:44 pm

I have plain vanilla html pages, BUT with NO html, head, or body. Normally, CSE Validator just 'assumes' the body tags are there, and I get a clean bill of health, or a few things to validate.

If however, the very beginning tag is a ColdFusion tag, i.e. - <cfset title = "" />, I get an error for every single line that the <body> tag is missing.

I've tried unchecking FLAG 116, but all that does is get rid of the first couple of ColdFusion errors... it still doesn't treat it like an HTML file.

In other words, if you add a ColdFusion tag as the very first thing in an HTML document, CSE Validator doesn't assume the rest should be wrapped in a <body> tag. Please let me know what I need to do.

I just need CSE Validator to COMPLETELY ignore any ' < c f ' tags.

Thank you!
Thomas

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Strange Issue with Flag 116

Post by Albert Wiersch » Sun Sep 08, 2013 9:59 am

Hi Thomas,

It seems the problem is that CSE HTML Validator isn't assuming that you're checking an "HTML block" that belongs in a "body" section when it starts with a ColdFusion tag. In that case, CSE HTML Validator doesn't make such assumptions.

If you have the professional edition or higher, you could try adding the ColdFusion tag to the configuration using the Configuration Editor. You can access it via Ctrl+F5. You can add the ColdFusion tag you are starting these blocks with, assign it to the "(all)" category, set the valid range to "body (0005)", and then switch to the Attributes tab and just set the attributes to "(ignore all)". This may work by causing CSE HTML Validator to make the desired assumption, but I haven't tested it.

More information is here (especially Example 2):
http://www.htmlvalidator.com/htmlval/configuration.html

Be sure to upgrade to 12.03 so you make the changes to the latest config file if you do this.

Please let me know if this solves the problem.
Image
Albert Wiersch

juicyroots
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Sat Sep 07, 2013 6:53 pm

Re: Strange Issue with Flag 116

Post by juicyroots » Sun Sep 08, 2013 11:08 am

Worked like a charm...

Thank you,
Juicy Roots

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3412
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Strange Issue with Flag 116

Post by Albert Wiersch » Sun Sep 08, 2013 2:23 pm

Great! :D
Image
Albert Wiersch

Post Reply