Modify ↓
Opened 7 years ago
Closed 6 years ago
#1533 closed Aufgabe (fixed)
Type Attribute für Javascript nicht mehr notwendig (HTML5)
| Reported by: | voodoopupp | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Shop | Version: | 2.0.4.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description (last modified by )
Wenn es möglich ist, dann sollte der Type attribut bei Javascript entfernt werden, wenn HTML5 eingesetzt wird.
Evtl. über einen Backend-Schalter o.ä. machbar?
W3C Validator meckert:
The type attribute is unnecessary for JavaScript resources.
<script type="text/javascript">
Attachments (0)
Change History (2)
comment:1 by , 7 years ago
| Description: | modified (diff) |
|---|---|
| Milestone: | → modified-shop-2.0.5.0 |
Note:
See TracTickets
for help on using tickets.

Das in den responsive Templates zu entfernen ist ja nicht das Problem, aber es gibt insgesamt 285 Funde von type="text/javascript" im aktuellen Shop.
Wie wäre es die "/includes/external/smarty/plugins/outputfilter.note.php" dafür zu erweitern?
if (TEMPLATE_HTML_ENGINE == 'html5') { $tpl_output = str_replace(' type="text/javascript"', '', $tpl_output); }