|
@@ 1013-1017 (lines=5) @@
|
| 1010 |
|
} |
| 1011 |
|
|
| 1012 |
|
// remove deprecated anchor-jump |
| 1013 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 1014 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 1015 |
|
return true; |
| 1016 |
|
} |
| 1017 |
|
} |
| 1018 |
|
|
| 1019 |
|
// remove "type=text/css" for css links |
| 1020 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 1020-1024 (lines=5) @@
|
| 1017 |
|
} |
| 1018 |
|
|
| 1019 |
|
// remove "type=text/css" for css links |
| 1020 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 1021 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 1022 |
|
return true; |
| 1023 |
|
} |
| 1024 |
|
} |
| 1025 |
|
|
| 1026 |
|
// remove deprecated script-mime-types |
| 1027 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |