|
@@ 1229-1233 (lines=5) @@
|
| 1226 |
|
} |
| 1227 |
|
|
| 1228 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1229 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1230 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1231 |
|
return true; |
| 1232 |
|
} |
| 1233 |
|
} |
| 1234 |
|
|
| 1235 |
|
// remove deprecated anchor-jump |
| 1236 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1250-1254 (lines=5) @@
|
| 1247 |
|
} |
| 1248 |
|
|
| 1249 |
|
// remove deprecated script-mime-types |
| 1250 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1251 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1252 |
|
return true; |
| 1253 |
|
} |
| 1254 |
|
} |
| 1255 |
|
|
| 1256 |
|
// remove 'value=""' from <input type="text"> |
| 1257 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |