Skip to content

Commit 0b87f6b

Browse files
adam77netman92
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 angular#11614
1 parent 916bc4b commit 0b87f6b

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)