|
@@ 1046-1050 (lines=5) @@
|
| 1043 |
|
} |
| 1044 |
|
|
| 1045 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1046 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1047 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1048 |
|
return true; |
| 1049 |
|
} |
| 1050 |
|
} |
| 1051 |
|
|
| 1052 |
|
// remove deprecated anchor-jump |
| 1053 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1067-1071 (lines=5) @@
|
| 1064 |
|
} |
| 1065 |
|
|
| 1066 |
|
// remove deprecated script-mime-types |
| 1067 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1068 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1069 |
|
return true; |
| 1070 |
|
} |
| 1071 |
|
} |
| 1072 |
|
|
| 1073 |
|
// remove 'value=""' from <input type="text"> |
| 1074 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |