summaryrefslogtreecommitdiff
path: root/BUGS.txt
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-04-25 01:12:00 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-04-25 01:12:00 +0000
commit81cb7c2f9cdf5038595399f3afecae526f72f4d0 (patch)
tree78f7b0e9057cfd3261c9ac8bc57e828af041d365 /BUGS.txt
parent03da26f3c9d0d99ea4afd99cf5330fe307ce3bb3 (diff)
downloaddocutils-81cb7c2f9cdf5038595399f3afecae526f72f4d0.tar.gz
added bug: HTML fragment identifiers & duplicate target names
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3252 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'BUGS.txt')
-rw-r--r--BUGS.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/BUGS.txt b/BUGS.txt
index 2f036d24b..4e97af5a1 100644
--- a/BUGS.txt
+++ b/BUGS.txt
@@ -222,6 +222,39 @@ Also see the `SourceForge Bug Tracker`_.
<paragraph>
four
+* IDs are based on names. Explicit hyperlink targets have priority
+ over implicit targets. But if an explicit target comes after an
+ implicit target with the same name, the ID of the first (implicit)
+ target remains based on the implicit name. Since HTML fragment
+ identifiers based on the IDs, the first target keeps the name. For
+ example::
+
+ .. contents::
+
+ Section
+ =======
+
+ .. _contents:
+
+ Subsection
+ ----------
+
+ text with a reference to contents_ and section_
+
+ .. _section:
+
+ This paragraph is explicitly targeted with the name "section".
+
+ When processed to HTML, the 2 internal hyperlinks (to "contents" &
+ "section") will work fine, but hyperlinks from outside the document
+ using ``href="...#contents"`` and ``href="...#section"`` won't work.
+ Such external links will connect to the implicit targets (table of
+ contents and "Section" title) instead of the explicit targets
+ ("Subsection" title and last paragraph).
+
+ Hyperlink targets with duplicate names should be assigned new IDs
+ unrelated to the target names (i.e., "id"-prefix serial IDs).
+
..
Local Variables: