Skip to content

Commit d96fa37

Browse files
timmywilrwaldron
authored andcommitted
2.0: Remove style->cssText attroproties fallback
1 parent ccf7aba commit d96fa37

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/attributes.js

+3
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ if ( !jQuery.support.hrefNormalized ) {
596596
});
597597
}
598598

599+
<<<<<<< HEAD
599600
if ( !jQuery.support.style ) {
600601
jQuery.attrHooks.style = {
601602
get: function( elem ) {
@@ -610,6 +611,8 @@ if ( !jQuery.support.style ) {
610611
};
611612
}
612613

614+
=======
615+
>>>>>>> 2.0: Remove style->cssText attroproties fallback
613616
// Radios and checkboxes getter/setter
614617
if ( !jQuery.support.checkOn ) {
615618
jQuery.each([ "radio", "checkbox" ], function() {

src/support.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jQuery.support = (function() {
1919
opt = select.appendChild( document.createElement("option") );
2020
input = div.getElementsByTagName("input")[ 0 ];
2121

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

38-
// Get the style information from getAttribute
39-
// (IE uses .cssText instead)
40-
style: /top/.test( a.getAttribute("style") ),
41-
4238
// Make sure that URLs aren't manipulated
4339
// (IE normalizes it by default)
4440
hrefNormalized: a.getAttribute("href") === "/a",

test/unit/attributes.js

-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ test( "jQuery.propFix integrity test", function() {
4646
"contenteditable": "contentEditable"
4747
};
4848

49-
if ( !jQuery.support.enctype ) {
50-
props.enctype = "encoding";
51-
}
52-
5349
deepEqual( props, jQuery.propFix, "jQuery.propFix passes integrity check" );
5450
});
5551

0 commit comments

Comments
 (0)