Author: michael
Description:
Summary: create section links with id attributes in divs, allowing CSS formatting of divs.
Currently, the beginning of a page section has this 1990s-style HTML:
<p><a name="References" id="References"></a></p> <h2>References</h2>
An improvement would be to remove the semantically-void paragraph, and enclose the entire section within a div. Then the div
id, including standardized id's like "See also", "Notes", "References","External links", could be used to format the page using CSS,
or to manipulate it using Javascript.
<div id="References"> <h2>References</h2> . . . </div>
For example, the list items in all pages' References sections could be formatted as a standard bibliography using the following
in a style sheet:
#References ul { list-style-type: none; list-style-image: none; padding-left: 0; margin-left: 1em; text-indent: -1em; } #References li { margin-bottom: 0.5em; }
Or Javascript could be used to expand/collapse divs.
See also Bug 1521: allow anchor name to be defined independent of section header text
Version: unspecified
Severity: enhancement