Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -4547,7 +4547,16 @@ |
4548 | 4548 | |
4549 | 4549 | !!end |
4550 | 4550 | |
| 4551 | +!! test |
| 4552 | +Punctuation: CSS ! important (bug 11874; with space after) |
| 4553 | +!! input |
| 4554 | +<div style="width:50% ! important">important</div> |
| 4555 | +!! result |
| 4556 | +<div style="width:50% ! important">important</div> |
4551 | 4557 | |
| 4558 | +!!end |
| 4559 | + |
| 4560 | + |
4552 | 4561 | !! test |
4553 | 4562 | HTML bullet list, closed tags (bug 5497) |
4554 | 4563 | !! input |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -318,7 +318,7 @@ |
319 | 319 | '/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1 \\2', |
320 | 320 | # french spaces, Guillemet-right |
321 | 321 | '/(\\302\\253) /' => '\\1 ', |
322 | | - '/ (!important)/' => ' \\1', #Beware of CSS magic word !important, bug #11874. |
| 322 | + '/ (!\s*important)/' => ' \\1', #Beware of CSS magic word !important, bug #11874. |
323 | 323 | ); |
324 | 324 | $text = preg_replace( array_keys($fixtags), array_values($fixtags), $text ); |
325 | 325 | |