Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 82b2961

Browse files
adam77Narretz
authored andcommitted
docs(angular.element): css() api incompatibility.
"When a number is passed as the value, jQuery will convert it to a string and add px to the end of that string." http://api.jquery.com/css/#css2 jqLite does not appear to do this. I can submit if fix desired. Closes #11614
1 parent 3cb10ed commit 82b2961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* - [`children()`](http://api.jquery.com/children/) - Does not support selectors
5656
* - [`clone()`](http://api.jquery.com/clone/)
5757
* - [`contents()`](http://api.jquery.com/contents/)
58-
* - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`
58+
* - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`. As a setter, does not convert numbers to strings and append 'px'.
5959
* - [`data()`](http://api.jquery.com/data/)
6060
* - [`detach()`](http://api.jquery.com/detach/)
6161
* - [`empty()`](http://api.jquery.com/empty/)

0 commit comments

Comments
 (0)