|
@@ 240-245 (lines=6) @@
|
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
// remove deprecated anchor-jump |
| 240 |
|
if ($htmlMin->isDoRemoveDeprecatedAnchorName()) { |
| 241 |
|
/** @noinspection NestedPositiveIfStatementsInspection */ |
| 242 |
|
if ($tag === 'a' && $attrName === 'name' && isset($allAttr['id']) && $allAttr['id'] === $attrValue) { |
| 243 |
|
return true; |
| 244 |
|
} |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
if ($htmlMin->isDoRemoveDefaultMediaTypeFromStyleAndLinkTag()) { |
| 248 |
|
/** @noinspection NestedPositiveIfStatementsInspection */ |
|
@@ 286-291 (lines=6) @@
|
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
// remove 'value=""' from <input type="text"> |
| 286 |
|
if ($htmlMin->isDoRemoveValueFromEmptyInput()) { |
| 287 |
|
/** @noinspection NestedPositiveIfStatementsInspection */ |
| 288 |
|
if ($tag === 'input' && $attrName === 'value' && $attrValue === '' && isset($allAttr['type']) && $allAttr['type'] === 'text') { |
| 289 |
|
return true; |
| 290 |
|
} |
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
// remove some empty attributes |
| 294 |
|
if ($htmlMin->isDoRemoveEmptyAttributes()) { |