diff options
author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-04-25 01:12:00 +0000 |
---|---|---|
committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-04-25 01:12:00 +0000 |
commit | 81cb7c2f9cdf5038595399f3afecae526f72f4d0 (patch) | |
tree | 78f7b0e9057cfd3261c9ac8bc57e828af041d365 /BUGS.txt | |
parent | 03da26f3c9d0d99ea4afd99cf5330fe307ce3bb3 (diff) | |
download | docutils-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.txt | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -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: |