• Do
not register here on develop.twiki.org, login with your twiki.org account.
• Use
Item7848 for generic
doc work for TWiki-6.1.1. Use
Item7851 for doc work on
extensions that are not part of a release.
More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
• Does this site look broken?. Use the LitterTray web for test cases.
Item7840: LinkOptionsPlugin class option bug and others
Item Form Data
AppliesTo: |
Component: |
Priority: |
CurrentState: |
WaitingFor: |
TargetRelease |
ReleasedIn |
Extension |
LinkOptionsPlugin |
Normal |
Closed |
|
n/a |
|
Detail
LinkOptionsPlugin, which introduces
[[URL_or_TOPIC][LABEL][OPTIONS]]
notation, has several issues.
-
Class:CLASS_NAME
option is supposed to replace an existing class attribute if it's there. But it adds class="CLASS_NAME" attribute without removing the class attribute an ordinary link has.
- It calls
TWiki::Func::renderText("[[$link][$text]]")
at the beginning of its processing. And it assumes that the return value starts with "<a ". However, there is a case where it starts with "<noautolink><a "
- It's written in old style -- "use vars" instead of "our", preferences in the plugin topic. Those oldness should be removed.
--
TWiki:Main/HideyoImazu
- 2018-05-22