j4: (dodecahedron)
j4 ([personal profile] j4) wrote2007-03-20 09:16 am
Entry tags:

This is an ex-HTML

Okay, I think I'm going mad. I put the following into our CMS:
<ul>
<li> Item 1
<ul>
<li> SubItem 1</li>
<li> SubItem 2</li>
</ul>
</li>
<li> Item 2</li>
</ul>
and it (silently, without any notification) 'corrected' it to the following:
<ul>
<li>Item 1
<ul></ul></li>
<li>SubItem 1</li>
<li>SubItem 2</li>
<li>Item 2</li></ul>
I pointed this out to the people who are setting up the new site for us, and they raised it as a support call with the CMS people, and got the following response:
"Could you please use the following schema:

<ul>
<li>Item 1</li>
<ul>
<li>SubItem 1</li>
<li>SubItem 2</li>
</ul>
<li>Item 2</li>
</ul>


Such syntax is formatted correctly."
If such syntax is formatted correctly, why doesn't it validate? I'm not even trying to be a validation Nazi about this (it's not as if anything that comes out of this CMS is ever going to validate anyway), it's more that I don't really want to have to 'correct' all our existing HTML to prevent it being 'corrected' by the CMS.
redbird: closeup of me drinking tea, in a friend's kitchen (Default)

[personal profile] redbird 2007-03-20 12:07 pm (UTC)(link)
You could send them back a note saying, as politely as you can manage, that the syntax you're entering and the CMS is refusing is valid HTML, and that their suggested fix is not good HTML, even though the CMS accepts it, as shown by the validator.

It may fit some local DTD, but HTML is not SGML, and you presumably are working on something that will be seen by outsiders and run through browsers that don't have your DTD.

[It's too early in the morning for me to find the politic phrasing; some mention of the fact that you know they didn't create the CMS might help.]