|
@@ 1078-1082 (lines=5) @@
|
| 1075 |
|
} |
| 1076 |
|
|
| 1077 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1078 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1079 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1080 |
|
return true; |
| 1081 |
|
} |
| 1082 |
|
} |
| 1083 |
|
|
| 1084 |
|
// remove deprecated anchor-jump |
| 1085 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1099-1103 (lines=5) @@
|
| 1096 |
|
} |
| 1097 |
|
|
| 1098 |
|
// remove deprecated script-mime-types |
| 1099 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1100 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1101 |
|
return true; |
| 1102 |
|
} |
| 1103 |
|
} |
| 1104 |
|
|
| 1105 |
|
// remove 'value=""' from <input type="text"> |
| 1106 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |