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

            Bug ID: 66637
           Summary: Make it possible to distinguish Wikitext headings and
                    HTML headings
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Unprioritized
         Component: Parser
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: eduard.bra...@gmx.de
       Web browser: ---
   Mobile Platform: ---

Right now the HTML created for
- headings specified using Wikitext (e.g. "==")
- headings created using HTML tags (e.g. "<h2>")
look basically the same.

- Both have a wrapping heading element (without class or id)
- Both contain a <span> of class "mw-headline"

The only (but major) difference is that sections created by Wikitext are
editable and therefore contain an additional <span> of class "mw-editsection".

It would be nice if there was an easy possibility to directly differentiate
those types of headers on a CSS level (e.g. by an additional class applied to
the parent <h*> element)


This would make it much easier to create custom CSS and JS since often one
would only want to style "true" (that is editable) article headers created by
Wikitext instead of custom created headers that are mostly used for design of
e.g. project pages.
Right now such CSS and JS often erroneously styles all headers the same,
regardless of how the headers were created, often resulting in unintentional
appearance.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to