|
@@ 1236-1240 (lines=5) @@
|
| 1233 |
|
} |
| 1234 |
|
|
| 1235 |
|
// remove deprecated anchor-jump |
| 1236 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 1237 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 1238 |
|
return true; |
| 1239 |
|
} |
| 1240 |
|
} |
| 1241 |
|
|
| 1242 |
|
// remove "type=text/css" for css links |
| 1243 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 1243-1247 (lines=5) @@
|
| 1240 |
|
} |
| 1241 |
|
|
| 1242 |
|
// remove "type=text/css" for css links |
| 1243 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 1244 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 1245 |
|
return true; |
| 1246 |
|
} |
| 1247 |
|
} |
| 1248 |
|
|
| 1249 |
|
// remove deprecated script-mime-types |
| 1250 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |