This and That
- A vs An
More than one native English speaker have given me fuzzy answers about the use of “a” vs “an”. I guess I should never have asked! I was taught to always use “a” before a word whose pronunciation begins with a consonant and “an” before a word whose pronunciation begins with a vowel. I was confused for some time only because I saw respectable publications violating this rule. But, I should not have worried as this article and this reference point out.
No points for guessing which browser is the culprit! Microsoft Internet Explorer (IE7) uses className as the class attribute, as against class that is used by every other browser! The fix is simple. Whenever I use setAttribute to set a class attribute I set both class and className attributes to the same value. Everything else works perfectly. One thing about IE7 is still a mystery to me, which is that it displays a horizontal scroll bar even when all the content is well within the viewport. In effect it renders the page in about 40% wider space than it needs to, but all the extra space to the right of the viewport is simply the background. I have not tried to “explore” this further because it is a relatively minor issue and does not affect the look and feel of the web-site.
I should also mention that for manipulating the DOM hierarchy I found a brief tutorial on Apple web-site most helpful.