|
@@ 1204-1208 (lines=5) @@
|
| 1201 |
|
} |
| 1202 |
|
|
| 1203 |
|
// remove deprecated anchor-jump |
| 1204 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 1205 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 1206 |
|
return true; |
| 1207 |
|
} |
| 1208 |
|
} |
| 1209 |
|
|
| 1210 |
|
// remove "type=text/css" for css links |
| 1211 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 1211-1215 (lines=5) @@
|
| 1208 |
|
} |
| 1209 |
|
|
| 1210 |
|
// remove "type=text/css" for css links |
| 1211 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 1212 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 1213 |
|
return true; |
| 1214 |
|
} |
| 1215 |
|
} |
| 1216 |
|
|
| 1217 |
|
// remove deprecated script-mime-types |
| 1218 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |