aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Use value rather than nodeValue in attributes (it's the string version). ↵timmywil2012-07-021-3/+3
| | | | Update sizzle: default attribute handling.
* Make removeClass smart enough to remove duplicates. Fixes #11923Rick Waldron2012-06-231-12/+11
|
* Interim take on cross-module variables, closes gh-817.Richard Gibson2012-06-151-5/+4
|
* Strips IIFEs from modules; Always require built jQuery for tests.Rick Waldron2012-06-041-4/+0
|
* Remove the tabindex attrHook. Fixes #8473timmywil2012-05-301-6/+0
|
* Fix 11547. XML and IE DOM can't be force-lowercase in removeAttr().Arne de Bree2012-04-101-1/+6
| | | | See discussion on pull request: https://github.com/jquery/jquery/pull/724
* Do not set boolean attributes to empty string on removal. Fixes #10870. +0 ↵timmywil2012-03-051-3/+7
| | | | bytes compressed
* Fix #11316. Find valHooks first by element type, then by nodeName.Mathias Bynens2012-03-021-2/+2
| | | | Reverses the previous search order.
* Fixes #10828, .attr("coords") returns undefined in IE7Mike Sherov2012-03-021-1/+2
|
* Fix #5571. Setters should treat `undefined` as a no-op and be chainable.Richard Gibson2011-12-061-2/+2
|
* Microoptimization in jQuery.attr and remove the redundancy of return undefinedtimmywil2011-11-141-5/+5
|
* Landing pull request 600. Remove jQuery.trim() to restore perf. Supplements ↵Rick Waldron2011-11-141-9/+12
| | | | | | | | #10773. More Details: - https://github.com/jquery/jquery/pull/600 - http://bugs.jquery.com/ticket/10773
* Fix #10773. Improve parameter handling in removeAttr.Oleg2011-11-141-3/+3
|
* Cleanup spacing in attributes.js. Fixes #10601Rick Waldron2011-10-271-8/+8
|
* Support setting both the enctype attribute and property (encoding in IE6/7). ↵timmywil2011-10-221-1/+7
| | | | Fixes #6743.
* Use the property name in elem.removeAttribute in IE6/7 to ensure correct ↵timmywil2011-10-171-16/+22
| | | | removals. Fixes #10514.
* Add a hook for removing contenteditable in IE6/7 and remove the unnecessary ↵timmywil2011-10-061-23/+20
| | | | jQuery.attrFix. Fixes #10429.