ikiwiki/doc/bugs/toggle_fails_on_Safari.mdwn

27 lines
1.1 KiB
Plaintext
Raw Normal View History

2008-07-25 06:25:19 +02:00
The [[plugins/toggle]] plugin has no effect when viewed on the Safari web browser.
All toggles appear open all the time.
2008-07-25 06:26:21 +02:00
I don't know if this is true for other webkit browsers (the new Konqueror, the iPhone, etc).
2008-07-25 06:25:19 +02:00
I'm currently testing in the Safari nightly builds, but I've seen the bug in the current release
of Safari too.
2008-07-25 06:26:21 +02:00
Looking at the Safari Web Inspector, it believes there is a parse error on line 47 of the
2008-07-25 06:25:19 +02:00
[[news]] page. This is the definition of the getElementsByClass(class) function.
45 }
46
47 function getElementsByClass(class) {
SyntaxError: Parse error
48 var ret = new Array();
> Reproduced in epiphany-webkit on debian.
>
> Also noticed something interesting when I opened the page in vim. It
> highlighted the "class" like a type definition, not a variable. Sure
> enough, replacing with "c" fixed it.
>
> I wonder if webkit is actually in the right here, and using a reseved
> word like, presumably, "class" as a variable name is not legal. As I try
> to ignore javascript as much as possible, I can't say. [[done]] --[[Joey]]