Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -4530,6 +4530,25 @@ |
4531 | 4531 | # |
4532 | 4532 | |
4533 | 4533 | !! test |
| 4534 | +Punctuation: nbsp before exclamation |
| 4535 | +!! input |
| 4536 | +C'est grave ! |
| 4537 | +!! result |
| 4538 | +<p>C'est grave ! |
| 4539 | +</p> |
| 4540 | +!! end |
| 4541 | + |
| 4542 | +!! test |
| 4543 | +Punctuation: CSS !important (bug 11874) |
| 4544 | +!! input |
| 4545 | +<div style="width:50% !important">important</div> |
| 4546 | +!! result |
| 4547 | +<div style="width:50% !important">important</div> |
| 4548 | + |
| 4549 | +!!end |
| 4550 | + |
| 4551 | + |
| 4552 | +!! test |
4534 | 4553 | HTML bullet list, closed tags (bug 5497) |
4535 | 4554 | !! input |
4536 | 4555 | <ul> |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -318,6 +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 | 323 | ); |
323 | 324 | $text = preg_replace( array_keys($fixtags), array_values($fixtags), $text ); |
324 | 325 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -125,6 +125,7 @@ |
126 | 126 | * (bug 6892, 7147) Trackback error handling, optional fields more robust |
127 | 127 | * (bug 6813) Don't break HTML validator when using trackbacks |
128 | 128 | * Fix for size checks on SVG images with global 'stroke-width' attribute |
| 129 | +* (bug 11874) Inline CSS with !important no longer borken |
129 | 130 | |
130 | 131 | |
131 | 132 | === API changes in 1.13 === |