https://bugzilla.wikimedia.org/show_bug.cgi?id=67092

            Bug ID: 67092
           Summary: Parser inserts invalid   in the middle of style
                    attribute
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Parser
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

When the parser strips a /* comment */ from a style attribute it inserts a
  in its place. This causes the stylesheet to be invalidated by the
browser and the relevant styles are not applied when the page is renders.


Wikitext input:

<blockquote style="border: 1px solid #aaa /* foo */;"></blockquote>

Expected output:

<blockquote style="border: 1px solid #aaa ;"></blockquote>
or
<blockquote style="border: 1px solid #aaa;"></blockquote>

Actual output:

<blockquote style="border: 1px solid #aaa &#160;;"></blockquote>

A nbsp; is illegal in css in that position and results in a parse error by the
browser, causing the 'border' rule in this case to not be applied.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to