#31892: [Regression][Widgets][Media] render_js
-------------------------------+--------------------------------------
     Reporter:  Buky           |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Forms          |                  Version:  3.1
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Jon Dufresne):

 This behavior intentionally changed in
 e703b93a656b78b9b444bb3a9980e305ed002a70 for ticket #31080. As noted in
 that ticket, specifying the default type is not recommend.

 From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
 #attr-type

 > Omitted or a JavaScript MIME type: This indicates the script is
 JavaScript. The HTML5 specification urges authors to omit the attribute
 rather than provide a redundant MIME type.

 From https://html.spec.whatwg.org/multipage/scripting.html#the-script-
 element

 > Authors should omit the type attribute instead of redundantly setting
 it.

 Beyond simply being different, how is this causing an issue in practice?

 If there is no practical issue then I think we should stick with the
 smaller, simplified form recommended by upstream authorities.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31892#comment:2>
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/065.94255eae8554498976ab471a3c3ba0a9%40djangoproject.com.

Reply via email to