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

       Web browser: ---
            Bug ID: 54473
           Summary: HtmlFormatter performs weird undocumented transforms
           Product: MediaWiki
           Version: 1.22-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
            Blocks: 700
    Classification: Unclassified
   Mobile Platform: ---

Copying from CR: https://gerrit.wikimedia.org/r/#/c/84342/5

"$html = str_replace( ' <', '&#32;<', $html );" – commented only with a link to
bug 53086, apparently ugly workaround for some bug or feature

"if ( wfIsWindows() ) { $html = str_replace( '&#13;', '', $html ); }" – not
commented on at all

Supported CSS selectors for remove() are not documented.


elementsToFlatten functionality uses very simple regexes for the
transformation; it should be documented that it only works correctly if the
elements have no attributes, lest someone use it for HTML sanitization.

-- 
You are receiving this mail because:
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