|
@@ 720-724 (lines=5) @@
|
| 717 |
|
} |
| 718 |
|
|
| 719 |
|
// remove deprecated anchor-jump |
| 720 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 721 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 722 |
|
return true; |
| 723 |
|
} |
| 724 |
|
} |
| 725 |
|
|
| 726 |
|
// remove "type=text/css" for css links |
| 727 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 727-731 (lines=5) @@
|
| 724 |
|
} |
| 725 |
|
|
| 726 |
|
// remove "type=text/css" for css links |
| 727 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 728 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 729 |
|
return true; |
| 730 |
|
} |
| 731 |
|
} |
| 732 |
|
|
| 733 |
|
// remove deprecated script-mime-types |
| 734 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |