|
@@ 548-552 (lines=5) @@
|
| 545 |
|
} |
| 546 |
|
|
| 547 |
|
// remove deprecated anchor-jump |
| 548 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 549 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 550 |
|
return true; |
| 551 |
|
} |
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
// remove "type=text/css" for css links |
| 555 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 555-559 (lines=5) @@
|
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
// remove "type=text/css" for css links |
| 555 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 556 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 557 |
|
return true; |
| 558 |
|
} |
| 559 |
|
} |
| 560 |
|
|
| 561 |
|
// remove deprecated script-mime-types |
| 562 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |