First off, I should say that I am jumping on posting this issue much quicker than I normally would - but I'm not really in a patient mood now, and I'm far from being a fan of anything the W3 has done.
Anyhow, I am in the process of going through a CMS I've built the past decade and cleaning up its markup so it validates (XHTML Strict).
I've run into a little hitch and was wondering if there is a simple solution, or if this is another one of the many restrictions XHTML seems to impose.
I understand the whole concept of encoding ampersands - that isn't news to me.
So if I change the code to look more like:
That code would fail validation, but function properly; yet if you encode the ampersand, it will validate, but won't work!
So, what's up here? I'll either slap myself for missing something so silly, or I'll add more fuel to my already roaring fire against W3. >_<
Surely there has got to be a practical approach here - to appease both ends - that I've just overlooked or haven't been aware of.
I appreciate any information any of you guys and gals may have!
Thanks for your time.