wish list, fragment validation

For technical support for all editions of CSE HTML Validator. Includes bug reports.

wish list, fragment validation

Postby roedygr » Wed Feb 02, 2011 11:19 am

This is not as high priority for me as a way to rapidly bring up files into the cseeditor that failed batch validation, but it would be nice too.

The problem is I want to validate fragments of HTML that I stitch together with macros to form complete files. The problem is they generally don't validate well in isolation. The generate too many false alarm error messages. It would be nice If there were a way to provide a temporary sandwich in which to validate them.

It might work like this:
<cseinclude file="header.htmlfrag" />

These includes are only used by CSE validator during validation to include additional HTML to make the validation make sense. normally there would be one at the head and tail of each fragment.

<cseinclude file="tail.htmlfrag" />

The feature might have other uses.
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 242
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Re: wish list, fragment validation

Postby Lou » Wed Feb 02, 2011 12:09 pm

I like that idea! Useful for several current applications.
User avatar
Lou
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 180
Joined: Fri Jul 29, 2005 5:55 pm
Location: MD

Re: wish list, fragment validation

Postby MikeGale » Wed Feb 02, 2011 5:09 pm

For this sort of thing validation in memory would be useful.

I can think of one way to do that (that people already understand), that's the clipboard.

If there were a way to "validate HTML fragment in clipboard" that might fit the bill. Behind the scenes it would wrap the fragment as a page and validate that. (You'd need to be able to specify the doctype!)

Just an idea!
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
 
Posts: 604
Joined: Mon Dec 13, 2004 2:50 pm
Location: Tannhauser Gate

Re: wish list, fragment validation

Postby Albert Wiersch » Wed Feb 02, 2011 5:23 pm

Hi Roedy,

Could you zip up some of these fragments and email them to me for testing? CSE HTML Validator is designed to check simple fragments without a lot of hassle, but this can vary depending on the fragment. There may be something I can easily do to improve this for the fragments you are checking.

The idea for includes is interesting, but I don't think I can justify the development for it at this time (not enough people would use it), but I will make a note of it so I won't forget it. Usually when includes are needed though, it is easier and better to run it through the server so CSE HTML Validator can check the full output instead of just a fragment.

The "Validate from Clipboard" feature is also an interesting idea... perhaps there could be an option to open a new document, paste the clipboard in it, and validate it. Would that be useful?

Thanks!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: wish list, fragment validation

Postby MikeGale » Wed Feb 02, 2011 8:45 pm

Your version of the clipboard idea sounds good to me.
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
 
Posts: 604
Joined: Mon Dec 13, 2004 2:50 pm
Location: Tannhauser Gate


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron