[Django] #35195: Remove all type="text/css" attributes

3 views
Skip to first unread message

Django

unread,
Feb 14, 2024, 8:54:17 AM2/14/24
to django-...@googlegroups.com
#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.

Reply all
Reply to author
Forward
0 new messages