Last modified: 2012-01-02 15:32:03 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 T35415, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33415 - Headlines should have their id in the h-tag not in a span
Headlines should have their id in the h-tag not in a span
Status: RESOLVED DUPLICATE of bug 31932
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-29 16:46 UTC by Subfader
Modified: 2012-01-02 15:32 UTC (History)
2 users (show)

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


Attachments

Description Subfader 2011-12-29 16:46:37 UTC
Not sure if this is proper HTML:

<h2><span class="editsection">...</span> <span id="License" class="mw-headline">License</span></h2>

Correct would be to add the id to the h2-tga instead:
<h2 id="License"><span class="editsection">...</span> <span class="mw-headline">License</span></h2>

It becomes a problem when you use the CSS3 pseudo selector :target to style the background:

*:target  { background-color:#fffddf !important }

http://i.imgur.com/I7uwr.png
Comment 1 Krinkle 2011-12-30 10:42:08 UTC
Hi, thanks for your report!

Looks like a good use case, like it. We should check out if this can break existing scripts though with regards to CSS selectors, but shouldn't be too bad and easily fixable.
Comment 2 Danny B. 2012-01-02 15:32:03 UTC

*** This bug has been marked as a duplicate of bug 31932 ***

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


Navigation
Links