Opened 12 years ago
Closed 12 years ago
#8936 closed bug (fixed)
.css and .style call adds "px" to widows a orphans style prop which are both "number only"; crash in IE
Reported by: | Owned by: | Rick Waldron | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.next |
Component: | css | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
According the WC3 definition for CSS2.1 the styles "widows" and "orphans" use the type integer.
Under IE9 the styles are saved inside the "DispHTMLStyle" type which controls the passed value types for the styles applied via myDom.css() and myDom.style()
Solution:
the JSON in jquery-1.5.2.js:5795 needs to be extended by the additional keywords "widows" and "orphans"
jquery-1.5.2.js:5795 =>
// Exclude the following css properties to add px cssNumber: { "zIndex": true, "fontWeight": true, "opacity": true, "zoom": true, "lineHeight": true },
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → css |
---|---|
Owner: | set to Rick Waldron |
Status: | new → assigned |
comment:2 Changed 12 years ago by
Priority: | undecided → blocker |
---|
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Landing pull request 340. Adds widows, orphans to cssNumber hash; includes tests. Fixes #8936.
More Details:
Note: See
TracTickets for help on using
tickets.
pull request momentarily