Page 1 of 1
Posted: Sun Jun 23, 2013 5:05 am
I just used the W3C Validator on a HTML5 document and got an error:
Bad value Content-Script-Type for attribute http-equiv on element meta.
This slipped through CSE (12.0200). Maybe it is possible to add a check to CSE for a future release.
Posted: Sun Jun 23, 2013 8:28 am
Yes, I plan on adding more checks for "meta" attribute values in the next major release.
If you have the pro or enterprise edition, then you can write custom user functions to check to make sure that attributes have certain values or that they don't have other values. This link (with some examples) may help you get started if you want to do so:
http://www.htmlvalidator.com/htmlval/v1 ... eid_id.htm
If you'd like more information on this, then please let me know.
Posted: Sun Jun 23, 2013 9:42 am
this sounds great, I wasn't really aware of that! So I opened the configuration editor, went to the "Programs" tab and checked the "Functions" radio button. There are a lot of functions visible in "Program Editor" now, but I'm unable to add soemthing new, though it's possible to delete text.
I'm quite sure that I'm missing something obvious, but what could that be?
Posted: Sun Jun 23, 2013 2:27 pm
I recommend that you create a text file (with a *.cfg extension) with the custom functions, then specify the file in Options->Validator Engine Options->Options
and the Validator Engine->Config File
page as a 'user functions' file.
More information is here:
http://www.htmlvalidator.com/htmlval/v1 ... index.html
You do not have to use (and should typically not
use) the Configuration Editor
Posted: Sun Jun 23, 2013 4:23 pm
that works perfect! Wow, I didn't expect it being that easy. Thank you very much!
There seems to be a small problem, however: After changing the *.cfg file, the changes need to loaded by CSE. I thought about hitting the "Reload Config" button on the "Config File "page (I got a success message afterwards). Then, when re-validating the document, I got: "Access violation at address 052EB6AA in module 'csevalidatorV120.dll'. Read of address 0000572F."
To reproduce the problem, simply click the "Reload Config" button and re-validate. You don't even have to change something. The solution to this is closing and re-opening CSE.
Posted: Sun Jun 23, 2013 8:52 pm
Thanks for the bug report. I was able to reproduce it and will look into it soon.
I'm glad it otherwise works "perfectly" and you're very welcome.
UPDATE: The access violation bug has been fixed for future releases (v12.0210+).