-
Notifications
You must be signed in to change notification settings - Fork 27.4k
docs(angular.element): css() api incompatibility. #11614
Conversation
"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.
Not sure why test is failing, the change is trivial. |
It's OK now :) |
Notes: - $dndDOM contains DOM helpers based on those from angular-ui/bootstrap and jQuery - Removed draggable.positionAbs - Fix issue when using jqLite's css implementation (angular/angular.js#11614) - Manually tested on IE9 Closes #64 Closes #63
@@ -55,7 +55,7 @@ | |||
* - [`children()`](http://api.jquery.com/children/) - Does not support selectors | |||
* - [`clone()`](http://api.jquery.com/clone/) | |||
* - [`contents()`](http://api.jquery.com/contents/) | |||
* - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()` | |||
* - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`. On write, does not convert numbers to strings and append 'px'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be:
On write, does not convert numbers to strings or append 'px'.
? Native speaker required. ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this line is too long, it should be broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the wording but not the line length. Next time!
----- Ursprüngliche Nachricht -----
Von: "Michał Gołębiowski" [email protected]
Gesendet: 27.04.2015 22:35
An: "angular/angular.js" [email protected]
Cc: "Martin Staffa" [email protected]
Betreff: Re: [angular.js] docs(angular.element): css() api incompatibility.(#11614)
In src/jqLite.js:
@@ -55,7 +55,7 @@
- -
children()
- Does not support selectors- -
clone()
- -
contents()
- * -
css()
- Only retrieves inline-styles, does not callgetComputedStyle()
- * -
css()
- Only retrieves inline-styles, does not callgetComputedStyle()
. On write, does not convert numbers to strings and append 'px'.
Also, this line is too long, it should be broken.
—
Reply to this email directly or view it on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a native speaker either, but I think it should be "nor" :)
(Just noting for next time.)
"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
"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
"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.
Partial fix for #11626 .
(can submit full fix if desired)