Log in

No account? Create an account
More stuff I learned during Mystery Hunt prep - devjoe [entries|archive|friends|userinfo]

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

More stuff I learned during Mystery Hunt prep [Jan. 23rd, 2008|08:38 am]
[Tags|, , , ]

Ugh, !@#$% Internet Explorer.

I already knew that IE would not display my SVG graphics without a plugin, and I had expected to convert those graphics to GIF or JPG for the web site. (The SVG format was still a very convenient way for my programs to output shapes and letters for the puzzle grids.) But I also converted several other puzzles for the web site besides my own, and fortunately, before the hunt began, somebody looked at my conversion of Race Around the Block in IE.

I had written something like:
<LI value=0>Step 0.
<LI value=0>Step 0.
<LI>Step 1.
<LI>Step 2.
And this looks like:
  1. Step 0.
  2. Step 0.
  3. Step 1.
  4. Step 2.
  5. Etc.
If you are viewing this in Firefox, you will see this list the way it is intended, with two steps numbered 0 and the subsequent ones numbered consecutively starting from 1. But IE gets it wrong, ignoring the value=0 entirely. Strangely enough, it handles LI value correctly for positive numbers, just not for zero or negative list numbers. Somehow, Safari gets it wrong also, though I didn't have an opportunity to play around with it and discover its odd details.

And I know that LI value is considered deprecated in HTML 4 (which this page was DOCTYPEd as) and XHTML 1. But deprecated just means that it is going away in the future and you should avoid using it, but it is still part of the standard. And the replacement for this, counters, is poorly understood and even more poorly supported, so browsers pretty much have to continue to support LI value. I had used this in my work, where I do write HTML that gets displayed in IE, but I had never tried with a 0 list number, and I did not stop to test this page under IE before submitting it, never suspecting that there would be a problem.

Before I could do anything to fix it, one of our other web-savvy members had re-coded this page using a "fake list" CSS style and manual numbering, and I figured that was good considering what we had seen in the alternative. At least, if it broke, it would break without messing up the puzzle.

From: (Anonymous)
2008-06-18 07:40 am (UTC)

Redmond has yet to outperform 600 AD Indian mathematicians

I ran into this one too (http://rutinat.vuodatus.net/blog/1376846). Does anyone happen to know any solution, which would allow semantic tagging (li for list items, etc.) to be used?

(Reply) (Thread)