NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item11389: Change named anchor links to target IDs
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Enhancement |
Waiting for Release |
Engine |
|
|
Names anchors have been deprecated.
<div id="some_anchor_name"></div>
should work with all browsers.
--
ArthurClemens - 25 Dec 2011
The a-name element should be replaced with an inline span-id ... not a block element. For tml headings, the h-element can take the id itself, i.e. no separate element is needed anymore.
--
MichaelDaum - 25 Dec 2011
Correct.
--
ArthurClemens - 25 Dec 2011
Right. And it would have killed you to fix the unit tests alongside your code?
--
OlivierRaginel - 26 Feb 2012
So it seems your fix fixed also the "weird double-anchor TOC issue that was exposed in
SemiAutomaticTestCaseTests::test_TestCaseAutoTOCManual
I've fixed all the unit tests for you, at least all the ones I saw failing. Would be great if people would start considering changing unit tests when they change the rendering...
--
OlivierRaginel - 26 Feb 2012
I did a search in the test folders and found:
- trunk/UnitTestContrib/test/unit/FormattingTests.pm
- trunk/UnitTestContrib/test/unit/TOCTests.pm
- trunk/core/data/TestCases/TestCaseAutoTOC.txt
- trunk/core/data/TestCases/TestCaseAutoTOCManual.txt
and fixed those (r. 14098, 14099).
I suspected there could be more. So thanks for the fixing.
--
ArthurClemens - 26 Feb 2012