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 Torsten Riemer)

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 Torsten Riemer, 7 years ago

Description: modified (diff)
Milestone: modified-shop-2.0.5.0

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); 
}

comment:2 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 11881:

fix #1533

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.