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

docs(angular.element): css() api incompatibility. #11614

Closed
wants to merge 1 commit into from

Conversation

adam77
Copy link
Contributor

@adam77 adam77 commented Apr 16, 2015

"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)

"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.
@adam77
Copy link
Contributor Author

adam77 commented Apr 16, 2015

Not sure why test is failing, the change is trivial.

@gkalpak
Copy link
Member

gkalpak commented Apr 16, 2015

It's OK now :)

caitp pushed a commit to caitp/angular-drop that referenced this pull request Apr 17, 2015
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
@Narretz Narretz self-assigned this Apr 20, 2015
@Narretz Narretz modified the milestone: Backlog Apr 20, 2015
@@ -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'.
Copy link
Member

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. ;-)

Copy link
Member

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.

Copy link
Contributor

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 call getComputedStyle()
    • * - css() - Only retrieves inline-styles, does not call getComputedStyle(). 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.

Copy link
Member

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.)

@Narretz Narretz closed this in 071b1bc Apr 27, 2015
Narretz pushed a commit that referenced this pull request Apr 27, 2015
"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
netman92 pushed a commit to netman92/angular.js that referenced this pull request Aug 8, 2015
"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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants