Last modified: 2014-06-15 19:36:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68637, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66637 - Make it possible to distinguish Wikitext headings and HTML headings
Make it possible to distinguish Wikitext headings and HTML headings
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.24rc
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-15 12:07 UTC by Eduard Braun
Modified: 2014-06-15 19:36 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eduard Braun 2014-06-15 12:07:49 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links