Skip to content

Commit

Permalink
2.0: Remove style->cssText attroproties fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil authored and rwaldron committed Dec 31, 2012
1 parent ccf7aba commit d96fa37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ if ( !jQuery.support.hrefNormalized ) {
});
}

<<<<<<< HEAD
if ( !jQuery.support.style ) {
jQuery.attrHooks.style = {
get: function( elem ) {
Expand All @@ -610,6 +611,8 @@ if ( !jQuery.support.style ) {
};
}

=======
>>>>>>> 2.0: Remove style->cssText attroproties fallback
// Radios and checkboxes getter/setter
if ( !jQuery.support.checkOn ) {
jQuery.each([ "radio", "checkbox" ], function() {
Expand Down
6 changes: 1 addition & 5 deletions src/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jQuery.support = (function() {
opt = select.appendChild( document.createElement("option") );
input = div.getElementsByTagName("input")[ 0 ];

a.style.cssText = "top:1px;float:left;opacity:.5";
a.style.cssText = "float:left;opacity:.5";
support = {
// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
getSetAttribute: div.className !== "t",
Expand All @@ -35,10 +35,6 @@ jQuery.support = (function() {
// This requires a wrapper element in IE
htmlSerialize: !!div.getElementsByTagName("link").length,

// Get the style information from getAttribute
// (IE uses .cssText instead)
style: /top/.test( a.getAttribute("style") ),

// Make sure that URLs aren't manipulated
// (IE normalizes it by default)
hrefNormalized: a.getAttribute("href") === "/a",
Expand Down
4 changes: 0 additions & 4 deletions test/unit/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ test( "jQuery.propFix integrity test", function() {
"contenteditable": "contentEditable"
};

if ( !jQuery.support.enctype ) {
props.enctype = "encoding";
}

deepEqual( props, jQuery.propFix, "jQuery.propFix passes integrity check" );
});

Expand Down

0 comments on commit d96fa37

Please sign in to comment.