SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

jQuery: out with the old, in with the new

by Developer, writer, thingymejiggy at Left Logic on Jun 09, 2011

  • 1,797 views

 

Statistics

Views

Total Views
1,797
Views on SlideShare
1,797
Embed Views
0

Actions

Likes
3
Downloads
15
Comments
2

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

12 of 2 previous next

  • remy.sharp Remy Sharp, Developer, writer, thingymejiggy at Left Logic @mathias - absolutely right. I quickly added that slide last minute and I did have a gut feeling that .attr('href') was the source value of the markup, rather than the DOM. The real examples I see they don't care whether it's relative or absolute, and often it's used to get the hash out - which should just be this.hash. Thanks for the comment though - I'll update my future slides (/if/ I do this deck again... :) - cheers. 2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • mathiasbynens Mathias Bynens, Freelance front-end developer at Qiwi Slide 48 and 49: `$(this).attr('href')` equals `this.getAttribute('href')`, not `this.href`. The latter usually gets normalized into the full resolved URL while the attribute value can be a relative reference. 2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

jQuery: out with the old, in with the new jQuery: out with the old, in with the new Presentation Transcript