|
@@ 1053-1057 (lines=5) @@
|
| 1050 |
|
} |
| 1051 |
|
|
| 1052 |
|
// remove deprecated anchor-jump |
| 1053 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 1054 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 1055 |
|
return true; |
| 1056 |
|
} |
| 1057 |
|
} |
| 1058 |
|
|
| 1059 |
|
// remove "type=text/css" for css links |
| 1060 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 1060-1064 (lines=5) @@
|
| 1057 |
|
} |
| 1058 |
|
|
| 1059 |
|
// remove "type=text/css" for css links |
| 1060 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 1061 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 1062 |
|
return true; |
| 1063 |
|
} |
| 1064 |
|
} |
| 1065 |
|
|
| 1066 |
|
// remove deprecated script-mime-types |
| 1067 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |