Author: michael
Description:
Because each section anchor is buried in a <p> before the section heading (ie. outside of its section), there is no way to use it in CSS to select the section heading or any following content.
The current situation (from [[w:en:T-34]]):
<p> <a name="References" id="References"></a> </p> <h2> <span class="editsection">[<a href="/w/index.php?title=T-34&action=edit&section=20" title="Edit section: References">edit</a>]</span> <span class="mw-headline">References</span> </h2>
There is no way to use a CSS selector involving, #References to select the article's References heading or section, for example to apply a format to all References sections. A sensible arrangement would allow, e.g., the following simple code to work, without having to change the rendering in old browsers:
#Notes + h2 + ul { [style for a list in any section entitled “Notes”] }
Any of the following would allow this:
- Remove the <p> from around the anchor -- since there is no contained text, it is effectively invisible anyway. Is there any disadvantage to this?
- Apply the ID attribute to the heading instead of an anchor in front of it (and name, for Netscape 4, right?).
Version: unspecified
Severity: enhancement