|
@@ 1197-1201 (lines=5) @@
|
| 1194 |
|
} |
| 1195 |
|
|
| 1196 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1197 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1198 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1199 |
|
return true; |
| 1200 |
|
} |
| 1201 |
|
} |
| 1202 |
|
|
| 1203 |
|
// remove deprecated anchor-jump |
| 1204 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1218-1222 (lines=5) @@
|
| 1215 |
|
} |
| 1216 |
|
|
| 1217 |
|
// remove deprecated script-mime-types |
| 1218 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1219 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1220 |
|
return true; |
| 1221 |
|
} |
| 1222 |
|
} |
| 1223 |
|
|
| 1224 |
|
// remove 'value=""' from <input type="text"> |
| 1225 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |