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

       Web browser: ---
             Bug #: 39502
           Summary: <tag /> should be treated as <tag></tag>
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Users who are more familiar with XML than with HTML often write things like
<div style="clear:left;" />
The parser (function removeHTMLtags in Sanitizer.php) currently does this:
* If wgUseTidy is true, the pseudo-self-closed tag is left as is, and fixed by
Tidy to <div style="clear:left;"></div> (or not, bug 38273)
* If wgUseTidy is false, the tag is flagged as "bad" and escaped to &lt;div
style="clear:left;" /&gt;
This is inconsistent, and makes it difficult to import text from a wiki with
Tidy into a wiki without.
So self-closed tags that should be in pairs should be closed automatically by
the parser. The current behavior was introduced as fix for bug 5487.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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