I have quite a large number of HTML fragments. These are included in other documents, however, I would like some way to verify them individually as fragments.
I can't very well put them in an HTML sandwich to make the validator happy, since that would make them unusable for inclusion. (though I suppose I could write a program to temporarily apply heads and tails to verify).
Here is a rough outline of a possible solution:
For batch, I can mark a directory as being a directory of "fragments", and I can provide the name of a head and tail file to logically apply to each fragment before validating.
Here is another approach. You have a relaxed fragment verification mode that forgives the initial missing <doctype, <html>, <head>, <body>, <table>, <tbody> and <tr> so long as all balances inside.
The feature might also be useful for validating hunks of raw JSP code where you don't have a complete HTML document. The rest of the document is generated dynamically.
Ideally the solution might solve a number of related problems.
I'd be interested in hearing any thoughts from your beta testing base on how this could be done.




