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