Getting back on the road to XHMTL compliance
This site has failed to validate for many moons now. I think ever since I added the twisty comments. So did some work today to make the twisty comments XHTML-compliant. I almost got there. The only problem I experienced was with the <iframe> that's used to submit the comment. Basically, if I want to be XHTML 1.0 Strict, I need to create the iframe on the fly (with JavaScript), as well as set the form's target to this frame. It all works fine and dandy in Mozilla, but I can't get IE to let me set an "onload" property for the iframe. It just doesn't work. So I've reverted to XHTML 1.0 Transitional and I've stuck the iframe in the page, allowing me to set the onload property manually. Other changes I made to facilitate better compliance (this is mainly so I can fix it in Roller later).
- Replaced "insertionid" attributes in weblog.vm with "id" attributes and adjusted JavaScript in comments.js accordingly.
- Various small fixes to themes/x2/styles/comments.css.
- Edited my "_day" template to end the </p> before the #showCommentsDiv.
- Moved <a> tags inside of the <h1> tags.
So my remaining problems are the onload on the iframe and the fact that the left arrow doesn't show up in IE next to the comments div. Oh well, I can live with one measly validation error.