|
@@ 1085-1089 (lines=5) @@
|
| 1082 |
|
} |
| 1083 |
|
|
| 1084 |
|
// remove deprecated anchor-jump |
| 1085 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 1086 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 1087 |
|
return true; |
| 1088 |
|
} |
| 1089 |
|
} |
| 1090 |
|
|
| 1091 |
|
// remove "type=text/css" for css links |
| 1092 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 1092-1096 (lines=5) @@
|
| 1089 |
|
} |
| 1090 |
|
|
| 1091 |
|
// remove "type=text/css" for css links |
| 1092 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 1093 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 1094 |
|
return true; |
| 1095 |
|
} |
| 1096 |
|
} |
| 1097 |
|
|
| 1098 |
|
// remove deprecated script-mime-types |
| 1099 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |