Nope, that doesn't work, at least in Firefox. It seems cursor requires a string value like 'default' - which is why I pull it from the styles hash.
P T Withington wrote: > Could you try instead setting style.cursor to the empty string? I > believe this is the portable way to remove a style, and it should be > more efficient than copying the class style down to each element. > > My bad for thinking that I could manipulate a DOM object as a > Javascript object. > > On 2009-07-20, at 19:24EDT, Max Carlson wrote: > >> Change 20090720-maxcarlson-I by [email protected] on 2009-07-20 >> 16:19:41 PDT >> in /Users/maxcarlson/openlaszlo/trunk-clean >> for http://svn.openlaszlo.org/openlaszlo/trunk >> >> Summary: Fix selection mechanism for IE DHTML >> >> Bugs Fixed: LPP-8339 - DHTML - IE 7 - Using OL 4.5.x.0 (14329) to >> compiled the latest build with webtop jade trunk - does not work with >> IE 7 (no login,) >> >> Technical Reviewer: ptw >> QA Reviewer: hminsky >> >> Details: This line intruduced in r14329 was a problem for IE: >> delete this.__LZdiv.style['cursor']; >> >> I changed it to explicitly set the style, based on the default value. >> >> Tests: webtop starts up again in IE7 dhtml. Also, this testcase still >> works - the first line is not selectable and has the default cursor. >> The second line is selectable. Clicking the button turns off >> selectable for the second line and shows the default cursor: >> <canvas> >> <simplelayout/> >> <text>Hello Laszlo!</text> >> <text name="foo" selectable="true">Hello Laszlo!</text> >> <button onclick="foo.setAttribute('selectable', >> false)">unselectable</button> >> </canvas> >> >> Files: >> M WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js >> >> Changeset: >> http://svn.openlaszlo.org/openlaszlo/patches/20090720-maxcarlson-I.tar >> _______________________________________________ >> Laszlo-reviews mailing list >> [email protected] >> http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews > > _______________________________________________ > Laszlo-reviews mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews -- Regards, Max Carlson OpenLaszlo.org _______________________________________________ Laszlo-reviews mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews
