Opened 13 years ago
Closed 13 years ago
#17790 closed Bug (fixed)
Ajax CSRF example is needlessly restrictive
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
On https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ , the jQuery call begins "$(document)..." which needlessly locks the user into using jQuery only, and not jQuery plus other libraries, which jQuery is designed to do; jQuery can be told to relinquish the "$" identifier, which other libraries like Prototype depend on. There is no loss and pure gain in terms of compatibility with multiple library usage if the call begins "jQuery(document)..."
Note:
See TracTickets
for help on using tickets.
In [17623]: