| |
  | Ones and Zeros |
| An irregularly updated journal of my Fair and Balanced thoughts, reactions, opinions, biases, outrages, strategies, victories, and commentary. Whatever it is, it's much too subtle to be considered a parody... |
|
|
| |
| Every now and then I try to fix stuff, or at least identify what needs fixed… |
|
September 20, 2006
| Computers and Software |
|
A while back I was bit by wierd self-closing tag attempts in HTML. I ran into an HTML page that used <a id=”myid” />, which makes sense for anchors as “targets I link to within a document”, but not so much for anchors as ‘enclosing content that links to some other document or target”. Not that I see any way to change that overloaded tag type at this stage.
Recently, the fine folks at Surfin’ Safari wrote about the oddity that is “valid XHTML 1.0” as interpreted by web browsers, and how it’s oddly broken because it usually just gets read as “nearly valid HTML 4.0.1”
So http://www.whiterose.org/test/testanchor2.html is a page that validates as XHTML 1.0 Transitional and serves as text/html. The anchor tag with the misguided self-closing “/” confuses the hell out of all the browsers I saw, and is similarly broken on all browsers I tried. To be honest, I’m not even sure if it should just self-close or not.
The wierdest thing is that Safari and Konquerer display different behavior than Mozilla family/IE6 if the self-closing anchor tag is inside 2 nested divs, but not just 1. I ran into this on Making Light and tried to report it as a Safari bug (8879), but it was closed as badly reported. I’d be happy to have help describing it better, because while it would be nice if it worked right, it should at least not work too differently from Mozilla and IE. This still happens differently with Safari revision 16490 and Firefox 2.0b2.
Anyone want to help me write a better bug report?
|
| .:Posted by Michael on September 20, 2006 11:36 PM:.
|
|
|
|