#31027: Prefer DOM object properties over Element.getAttribute() and
Element.setAttribute()
------------------------------------------------+------------------------
               Reporter:  Jon Dufresne          |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  contrib.admin         |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Some JavaScript code uses `Element.getAttribute()` or
 `Element.setAttribute()` to access data that is available through a DOM
 object property. In general, the properties should be preferred as they
 are always normalized values and typed. The
 `getAttribute()`/`setAttribute()` are an abstraction over the serialized
 text representation.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31027>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.85932744c295df401b61c34ba1272c7b%40djangoproject.com.

Reply via email to