Here's what it looks like so far. Its the wiktionary logo (or at least in some languages anyways) in the background.

A collection of my opinions/rants/whatever else.
<script src='http://en.wikinews.org/w/index.php?title=MediaWiki%3AWiktionaryLookup-external.js&action=raw&ctype=text/javascript' type='text/javascript'></script>
Wikinews's Main page has finally been updated to ShakataGaNai's redesign. (The delay was due to me not being avaliable to make the automated lead generator work with the new main page. I was a little worried today when i logged in i would be beheaded on irc for not being arround to do that for so long.)
I think the new design looks absolutely excellent. There have been so many failed attempts at redesigning the main page, I'm glad to see we've finally agreed on one and that it looks so nice.
hasAttribute
method of dom elements. Which isn't that bad since its fairly trivial to replace hasAttribute
with getAttribute
. The scary thing is that this issue has been present since November 2007.hasAttribute('missing')
to getAttribute('missing', 2) == ""
. (I'm not sure where the 2 came from. All the docs i've read seem to state that getAttribute
only takes 1 parameter) This almost would have worked, except for one important fact. In the mediawiki api, if you try to find info on a non-exisistant page, it will give you: <page
... missing="" />
[1] Thus the normal value for the attribute if present is "", and if its not present, according to the w3c getArribute
should return the empty string. Thus testing for the empty string doesn't work, as it returns the empty string in both cases. However in practice this doesn't seem entirely true, as in both Firefox and IE, when getAttribute
is used on a missing attribute, the browser returns null
instead of ""
(The previous code of getAttribute('missing', 2) == ""
would still of worked since "" == null
)hasAttribute()
method (for the good little browsers that support it), and if that throws an exception, it will see if getAttribute(attributeName) !== null
. (assuming that anybody who doesn't support hasAttribute
also returns null when getting a non-existant attribute.