Currently, it is perfectly possible to use html id= attributes inside
a wiki page giving them arbitrary values. When using one that is
also used by the skin, or duplicating id= values inside the page text,
one can generate invalid html, since id= values have to be unique within
html documents.
While this error class is tolerated by browsers and thus does not
usually cause problems to users, intended use of id= values for
either styling via CSS or as fragment identifiers that browsers
are expected to scroll to, is impacted.
At the moment, editors are not notified of the possibility of
problems, and duplicated id= values are not diagnosed.
Since it is obvious that the parser could collect id= values
for finding duplicates, this should be considered for the new
parser. Checking the id= values is one of the tasks requiring
a full page parse even during section editing, otherwise
sufficient data needs to be kept with each page to know existing
id= values of other sections without parsing them.
I would also suggest to reserve a series of id= values for
the use by MediaWiki and document that so as to reduce the
likelyhood of conflicts. Since using id= attributes is a
subject matter likely outside the scope of casual, unexperienced
and less educated editors, I also suggest to just accept duplicates
during a 2nd save, such as empty "Summary" fields. Maybe even
a toggle in Special:Preferences similar to the one for the
handling of empty "Summary" fields can be considered for the
id= value checking.
This bug is related to bug 7356.
Version: unspecified
Severity: enhancement