20030623 Monday June 23, 2003

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. Posted in Roller at Jun 23 2003, 02:53:35 PM MDT Add a Comment

Comments:

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud