jQuery: The Write Less, Do More JavaScript Library

Ticket #170 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

Hyphens in CSS, IE6

Reported by: john Assigned to: anonymous
Type: bug Priority: major
Milestone: Component: core
Version: 1.0a Keywords: Hyphens, css, z-index, ie6
Cc: Needs:

Description

In the last year I’ve been fascinated in the progression of Javascript tools and was just about to explore basic use of Prototype when I found JQuery.

Since then I’ve done a few basic tests in my own environment and would like to report on some issues I seem to have identified. I haven’t posted them on the forum because I’m pretty busy and don’t have time to revisit and also I don’t have all that much confidence to relate to guys that are clearly at the top.

This is what I have discovered in my own environment (XP/IE7) using Jscript in the way shown in the appended file.

Using the latest version of jscript, which I downloaded, I cannot apply CSS property-value combinations if there is a hyphen in the property. Thus “font”,”14px Red” will work but not “font-size”, “14px”

Also, I cannot apply the value “inherit”. In the previous version of Jscript using (<script type="text/javascript" src="http://jquery.com/src/latest/"></script>) hyphenated properties would work but not non-hyphenated properties. Also “inherit” would work in that version.

Attachments

Change History

Changed 2 years ago by Isaac Weinhausen

  • keywords set to Hyphens, css, z-index, ie6
  • version set to 1.0b1
  • summary changed from Hyphens in CSS, IE7 to Hyphens in CSS, IE6

I've also noticed that CSS properties are not being recognized in the .css() method in IE6, though DOM style keys are being accepted. Example: zIndex works, z-index does not. As usual, this bug does not appear in Firefox.

Changed 2 years ago by brandon

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN.

Note: See TracTickets for help on using tickets.