|
@@ 1006-1010 (lines=5) @@
|
| 1003 |
|
} |
| 1004 |
|
|
| 1005 |
|
// remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway) |
| 1006 |
|
if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) { |
| 1007 |
|
if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) { |
| 1008 |
|
return true; |
| 1009 |
|
} |
| 1010 |
|
} |
| 1011 |
|
|
| 1012 |
|
// remove deprecated anchor-jump |
| 1013 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
|
@@ 1027-1031 (lines=5) @@
|
| 1024 |
|
} |
| 1025 |
|
|
| 1026 |
|
// remove deprecated script-mime-types |
| 1027 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |
| 1028 |
|
if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) { |
| 1029 |
|
return true; |
| 1030 |
|
} |
| 1031 |
|
} |
| 1032 |
|
|
| 1033 |
|
// remove 'value=""' from <input type="text"> |
| 1034 |
|
if ($this->doRemoveValueFromEmptyInput === true) { |