|
@@ 1205-1209 (lines=5) @@
|
| 1202 |
|
} |
| 1203 |
|
|
| 1204 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1205 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1206 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1207 |
|
return true; |
| 1208 |
|
} |
| 1209 |
|
} |
| 1210 |
|
|
| 1211 |
|
// remove deprecated anchor-jump |
| 1212 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1226-1230 (lines=5) @@
|
| 1223 |
|
} |
| 1224 |
|
|
| 1225 |
|
// remove deprecated script-mime-types |
| 1226 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1227 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1228 |
|
return true; |
| 1229 |
|
} |
| 1230 |
|
} |
| 1231 |
|
|
| 1232 |
|
// remove 'value=""' from <input type="text"> |
| 1233 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |