• Email
  • Like
  • Save
  • Private Content
  • Embed
 

jQuery: out with the old, in with the new

by

  • 1,407 views

 

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

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

Statistics

Likes
2
Downloads
12
Comments
2
Embed Views
0
Views on SlideShare
1,407
Total Views
1,407

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. 1 year ago
    Are you sure you want to
  • 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. 1 year ago
    Are you sure you want to
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