On May 6, 8:28 pm, Brandon Aaron <brandon.aa...@gmail.com> wrote: > Out of curiosity... what are you expecting back from the call to padding > when it is different for top/bottom vs left/right?
I think an equally valid question is... what does jQuery intend to do in such situations? Clearly, crashing is not the best option. Anything that causes the code to completely crash should be avoided by either checking for valid input (if some inputs are considered invalid) or by deciding how to handle cases that don't have obvious answers (like this case). It's not enough, IMO, to ignore the tough questions of how jQuery should behave and point to an alternative. :) In the example case: #foo { padding: 5px 10px; } you may want to consider returning [5,10,5,10] for example. Matt Kruse --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---