aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
* All non-var modules should not indent in their AMD wrappers (just for ↵Timmy Willison2013-09-091-2/+3
| | | | prettier builds). No functionality changes.
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-1/+5
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-502/+6
|
* Avoid jQuery(this) and a closure for .toggle(Boolean), close gh-1271.Jason Bedard2013-06-021-5/+10
|
* Fix #13835: classes separated by form feedRichard Gibson2013-05-131-1/+1
|
* Only call jQuery(this) when needed. Close gh-1260.Jason Bedard2013-05-091-3/+2
|
* Fix #13809: Avoid collisions with words reserved by any version of ECMA-262Richard Gibson2013-04-241-3/+3
|
* Adjust tabIndex propHook for modern browsers and return -1 where ↵Oleg Gaidarenko2013-04-081-23/+10
| | | | appropriate. Close gh-1228.
* No ticket. Use data_priv methods instead of jQuery._removeData and ↵Oleg Gaidarenko2013-04-081-2/+2
| | | | jQuery._data; Remove needless, internal second argument of jQuery.cleanData. Closes gh-1234
* No ticket: Small simplification of .removeProp. Close gh-1227.Oleg2013-04-071-3/+1
|
* Fix #13539: Utilize Sizzle hooks. Close gh-1215.Richard Gibson2013-04-051-57/+68
| | | | (cherry picked from commit 4ef516903e6e48bce388ca47c1ed88a447199fa1)
* Correct oldIE-related comments, revert some workarounds. Close gh-1207.Michał Gołębiowski2013-04-041-6/+3
|
* Update grunt-contrib-jshint to 0.3.0, close gh-1204.Michał Gołębiowski2013-04-031-2/+2
| | | | | | | | (cherry picked from 4adde5d14534799f3bcfac2771e1513be8a56a2f) Conflicts: src/data.js src/effects.js
* Fix #13514: Set selectedIndex to -1 when non-matching value is set on a ↵ruado19872013-03-221-7/+14
| | | | | | select. Close gh-1191. (cherry picked from commit 48d71d0c3e53d1bb1688fc6c0593b008ced3403b)
* Fix #13315 for IE9: compare typeof xmlNode.method to var instead of literal ↵Richard Gibson2013-01-271-3/+3
| | | | | | "undefined" for safer uglification (cherry picked from commit ec9b38a34fb9bd81d1903cf12b69466f699abca5)
* Ref #12945, IE9/10 still needs safe .getAttribute check.Dave Methvin2013-01-041-1/+3
|
* Fix #12945. Check for .getAttribute so IE9 is happy.Dave Methvin2013-01-041-1/+3
|
* Restore optSelected hack still needed by IE9/10Dave Methvin2012-12-311-0/+14
|
* 2.0: Remove getSetAttribute and getSetInput and oldIE attroperties hooksTimmy Willison2012-12-311-121/+6
|
* Resolved conflictRick Waldron2012-12-311-40/+0
|
* 2.0: Remove style->cssText attroproties fallbackTimmy Willison2012-12-311-0/+3
|
* 2.0: Remove support.optSelectedTimmy Willison2012-12-311-20/+0
|
* 2.0: Remove oldIE enctype propFixTimmy Willison2012-12-311-5/+0
|
* Fixes #13088: under IE8, $(selector).attr('style') always return lowercase ↵Mike Sherov2012-12-311-2/+3
| | | | string
* let .attr(checked|selected, true) update the propertyRichard Gibson2012-12-161-1/+1
|
* Fix #11115: Normalize boolean attributes/properties. Close gh-1066.Richard Gibson2012-12-151-33/+50
|
* Fix #12600: don't use value property in place of value attribute. Close gh-1063.Richard Gibson2012-12-141-43/+39
|
* Fix #9646. Cloned nodes shouldn't affect original in IE7. Close gh-947.Oleg2012-12-131-1/+9
|
* Fix #13011. Let 'type' attribute be set if the browser allows.Dave Methvin2012-12-111-7/+2
|
* save a byteRichard Gibson2012-11-271-2/+2
|
* Don't let removeClass create attributesRichard Gibson2012-11-271-9/+12
|
* Fix #12959: Optimize library-wide patternsRichard Gibson2012-11-271-58/+57
|
* Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035.aFarkas2012-11-181-6/+8
|
* Fix #12840: remove undocumented parameter "pass" from .attr. Close gh-1017.Richard Gibson2012-11-051-8/+3
|
* Fix #10299. Add a propHook for oldIE link href.Dave Methvin2012-11-011-0/+8
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed inline usage of QUnit.reset() because it is messing with the expectation model as reset does .empty() which does a recursive cleanData on everything in #qunit-fixture, so any expectJqData above .reset() would fail negatively. Instead of calling reset inline, either updated the following assertions to take previous assertions' state into account, or broke the test() up into 2 tests at the point where it would call QUnit.reset. * After introducing the new memory leak discovery a whole bunch of tests were failing as they didn't clean up everything. However I didn't (yet) add QUnit.expectJqData calls all over the place because in most if not all of these cases it is valid data storage. For example in test "data()", there will be an internal data key for "parsedAttrs". This particular test isn't intending to test for memory leaks, so therefor I made the new discovery system only push failures when the test contains at least 1 call to QUnit.expectJqData. When not, we'll assume that whatever data is being stored is acceptable because the relevant elements still exist in the DOM anyway (QUnit.reset will remove the elements and clean up the data automatically). I did add a "Always check jQuery.data" mode in the test suite that will trigger it everywhere. Maybe one day we'll include a call to everywhere, but for now I'm keeping the status quo: Only consider data left in storage to be a problem if the test says so ("opt-in"). * Had to move #fx-tests inside the fixture because ".remove()" test would otherwise remove stuff permanently and cause random other tests to fail as "#hide div" would yield an empty collection. (Why wasn't this in the fixture in the first place?) As a result moving fx-tests into the fixture a whole bunch of tests failed that relied on arbitrary stuff about the document-wide or fixture-wide state (e.g. number of divs etc.). So I had to adjust various tests to limit their sample data to not be so variable and unlimited... * Moved out tests for expando cleanup into a separate test. * Fixed implied global variable 'pass' in effects.js that was causing "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that uses a global variable "pass = function () {};" ... * Removed spurious calls to _removeData. The new test exposed various failures e.g. where div[0] isn't being assigned any data anyway. (queue.js and attributes.js toggleClass). * Removed spurious clean up at the bottom of test() functions that are already covered by the teardown (calling QUnit.reset or removeClass to supposedly undo any changes). * Documented the parentheses-less magic line in toggleClass. It appeared that it would always keep the current class name if there was any (since the assignment started with "this.className || ...". Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently). Only added the comment for now, though I prefer clarity with logical operators, I'd rather not face the yayMinPD[1] in this test-related commit. * Updated QUnit urlConfig to the new format (raw string is deprecated). * Clean up odd htmlentities in test titles, QUnit escapes this. (^\s+test\(.*)(&gt\;) → $1> (^\s+test\(.*)(&lt\;) → $1< [1] jQuery MinJsGz Release Police Department (do the same, download less)
* Sizzle: remove unneeded vars and POS regex (-22 bytes)Timmy Willison2012-10-241-1/+1
|
* Fix #12411, .removeClass(undefined) is a chaining no-op. Close gh-913.Matthias Jäggli2012-10-211-1/+1
| | | | | .removeClass() //removes all classes, as documented .removeClass(window.nonExistentVariable) // removes nothing
* Fix #12048. Set attributes for XML fragments. Close gh-965.Sai Wong2012-10-201-1/+1
|
* Moved attrFN to deprecated. Close gh-977.Akintayo Akinwunmi2012-10-161-4/+1
|
* Fix #12583: Don't ignore disabled property of select-one, close gh-932.Richard Gibson2012-10-031-19/+13
|
* Fix #12229, size/consistency improvements. Close gh-887.Richard Gibson2012-09-181-5/+5
|
* Add back a sacrificial $.attrFn object.Dave Methvin2012-08-071-0/+3
| | | | | | Originally removed in 86b775d036627ebd7242fbb4eb9f24e4ba1fa9c5 as part of the enhancement that allows $(html, props) to use any $.fn method. Although $.attrFn is undocumented it appears to be a poorly kept secret. jQuery Mobile 1.1 is using it and it's the topic of several blog/StackOverflow posts. Leave an empty object here as a dumpster for now, but it's coming out for good in 1.9.
* Clean up regexen; use common regex for numbers. Close gh-862.Richard Gibson2012-07-221-2/+2
|
* Revert "Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7."Dave Methvin2012-07-121-0/+8
| | | | | | This reverts commit e866893fd29b0328ebc282cf0ba716e6f87384c3. Failures in IE6 when this is removed, unfortunately.
* Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7.Dave Methvin2012-07-121-8/+0
| | | | At this point BlackBerry 4.7 (and related ancient browsers) should be scarce (released circa 2008) so #6932 will be closed wontfix for this edge case.
* Fix #11547. toLowerCase not work good on XML attributes.Dave Methvin2012-07-111-7/+2
| | | | This was fixed to some extent in gh-724 but there were insufficient test cases. Removing the lowercase completely allows IE 6/7 to work properly since there you need an exact case match for attributes, even in HTML docs. More discussion and test cases in the comments on gh-724.
* Fixes a variety of typographical problems. Closes gh-853Chris Faulkner2012-07-111-1/+1
|
* Follow the style guide, lose 72 bytes! Closes gh-840.Mike Sherov2012-07-091-4/+5
|
* Fix #12026. Let props in $(html, props) be any jQuery.fn method.Dave Methvin2012-07-051-12/+1
| | | | Closes gh-839.