Issue 428 in simile-widgets: Lenses uses "className" for all IE - but that does not work anymore in IE8 (needs "class")

2 views
Skip to first unread message

codesite...@google.com

unread,
Mar 4, 2011, 4:51:11 AM3/4/11
to simile-wi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 428 by walter.j...@gmail.com: Lenses uses "className" for all IE
- but that does not work anymore in IE8 (needs "class")
http://code.google.com/p/simile-widgets/issues/detail?id=428

What steps will reproduce the problem?
1. make lens templates with class attributes for styling
2. try it in IE7 and IE8


What is the expected output? What do you see instead?
in both IE's "className" attribute is used (instead of "class") - that is
needed to make it work in IE7 but in IE8. Code that needs to be changed is
in lens.js around line 480.

What version of the product are you using? On what browser and what
operating system?
SIMILE Exhibit 2.2

codesite...@google.com

unread,
May 2, 2011, 8:40:23 AM5/2/11
to simile-wi...@googlegroups.com

Comment #1 on issue 428 by emily.br...@duke.edu: Lenses uses "className"
for all IE - but that does not work anymore in IE8 (needs "class")
http://code.google.com/p/simile-widgets/issues/detail?id=428

Hi, just wondering if anybody knows when this bug might be fixed or if
there is a workaround? Thanks!

David Karger

unread,
May 2, 2011, 8:43:34 PM5/2/11
to simile-wi...@googlegroups.com
If we change className to class, will it stop working on IE7?
Will putting in both class and className produce problems in either
version of IE?

David Karger

unread,
May 3, 2011, 10:57:43 PM5/3/11
to simile-wi...@googlegroups.com
I've checked in a fix at trunk.simile-widgets.org . Please confirm that
it works.

On 5/2/2011 8:40 AM, codesite...@google.com wrote:
>

codesite...@google.com

unread,
Mar 14, 2012, 2:33:43 PM3/14/12
to simile-wi...@googlegroups.com

Comment #4 on issue 428 by rajeevka...@gmail.com: Lenses uses "className"
for all IE - but that does not work anymore in IE8 (needs "class")
http://code.google.com/p/simile-widgets/issues/detail?id=428

in lens.js, line#418 change from

name = "className";

to

name = "class";

Then the classes come correctly in IE8+.

codesite...@google.com

unread,
Mar 14, 2012, 3:02:06 PM3/14/12
to simile-wi...@googlegroups.com

Comment #5 on issue 428 by rajeevka...@gmail.com: Lenses uses "className"
for all IE - but that does not work anymore in IE8 (needs "class")
http://code.google.com/p/simile-widgets/issues/detail?id=428

After making the change, you can recreate the budle or edit the
exhibit-bundle.js (2.2.0) and make same change on line#4375.

I hope this helps someone struggling on IE8, IE9 to make the lens format
work correctly.

David Karger

unread,
Mar 14, 2012, 4:06:02 PM3/14/12
to simile-wi...@googlegroups.com
Did you check whether this problem holds in trunk? Try
http://trunk.simile-widgets.org/exhibit/api . I think I fixed it there.
Reply all
Reply to author
Forward
0 new messages