|
@@ 1235-1239 (lines=5) @@
|
| 1232 |
|
} |
| 1233 |
|
|
| 1234 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1235 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1236 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1237 |
|
return true; |
| 1238 |
|
} |
| 1239 |
|
} |
| 1240 |
|
|
| 1241 |
|
// remove deprecated anchor-jump |
| 1242 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1256-1260 (lines=5) @@
|
| 1253 |
|
} |
| 1254 |
|
|
| 1255 |
|
// remove deprecated script-mime-types |
| 1256 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1257 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1258 |
|
return true; |
| 1259 |
|
} |
| 1260 |
|
} |
| 1261 |
|
|
| 1262 |
|
// remove 'value=""' from <input type="text"> |
| 1263 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |