|
@@ 813-817 (lines=5) @@
|
| 810 |
|
} |
| 811 |
|
|
| 812 |
|
// remove deprecated anchor-jump |
| 813 |
|
if ($this->doRemoveDeprecatedAnchorName === true) { |
| 814 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 815 |
|
return true; |
| 816 |
|
} |
| 817 |
|
} |
| 818 |
|
|
| 819 |
|
// remove "type=text/css" for css links |
| 820 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
|
@@ 820-824 (lines=5) @@
|
| 817 |
|
} |
| 818 |
|
|
| 819 |
|
// remove "type=text/css" for css links |
| 820 |
|
if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) { |
| 821 |
|
if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') { |
| 822 |
|
return true; |
| 823 |
|
} |
| 824 |
|
} |
| 825 |
|
|
| 826 |
|
// remove deprecated script-mime-types |
| 827 |
|
if ($this->doRemoveDeprecatedTypeFromScriptTag === true) { |