#35195: Remove all type="text/css" attributes
------------------------------------------------+------------------------
               Reporter:  cosmicproc            |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Uncategorized         |        Version:  5.0
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 The attribute {{{type="text/css"}}} is unnecessary for {{{<style>}}} and
 {{{<link>}}} tags in modern HTML. While the commit
 
[https://github.com/django/django/commit/7c4f3965098baad2396e24501e09237425a7bd6f]
 removed many {{{type="text/css"}}} attributes, there are still some of
 them.

 {{{
 $ git grep 'type="text/css"'
 django/contrib/admindocs/templates/admin_doc/model_detail.html:<style
 type="text/css">
 django/views/templates/csrf_403.html:  <style type="text/css">
 django/views/templates/technical_404.html:  <style type="text/css">
 django/views/templates/technical_500.html:  <style type="text/css">
 docs/releases/4.1.txt:* The ``type="text/css"`` attribute is no longer
 included in ``<link>`` tags
 tests/utils_tests/files/strip_tags1.html:    <link
 href="https://a248.e.akamai.net/assets.github.com/assets/github-
 f70e4783e00fd4884a9e5e651a43933c9881caa8.css" media="all" rel="stylesheet"
 type="text/css" />
 tests/utils_tests/files/strip_tags1.html:    <link
 
href="https://a248.e.akamai.net/assets.github.com/assets/github2-0d31290d073dea4d8671e2b8c747629aeb074034.css";
 media="all" rel="stylesheet" type="text/css" />
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35195>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018da7e57e35-c9891c1d-8999-44a1-86fc-90b570f44765-000000%40eu-central-1.amazonses.com.

Reply via email to