Project

General

Profile

Actions

Bug #970

closed
VV KD

WAnchor illustrated as <span> when no WResourse or Url defined

Bug #970: WAnchor illustrated as <span> when no WResourse or Url defined

Added by V.E.O V.E.O about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
08/31/2011
Due date:
% Done:

0%

Estimated time:

Description

I build my project on Git:aa1987600cea09d20678159c8faa301a2043cd27.
When I new a WAnchor(parent) without WResourse or Url, the html code would be generated as .
if we want setResource later, the span dom will just add a href property and not changing to a URL.

This not happened in 3.1.10 release, for WAnchor(parent) always be generated as

Great Framework, do great favor to my project. Thanks a lot!

Regards,
V.E.O

KD Updated by Koen Deforche almost 15 years ago Actions #1

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey,

For valid HTML, an anchor must have a valid href value. I think this should thus be solved by changing the span for an anchor when setting a href ?
Alternatively, or as a workaround, you could specify an initial href of "#" ?

Regards,
koen

VV Updated by V.E.O V.E.O almost 15 years ago Actions #2

Hi,

You are right, I've made a workaround by specify url as "#", then I had to hide this WAnchor.
But, when no url specified initializing, WAnchor object responsed with empty , which using setRefInternalPath and setText, it's still plain text surrounded by not .

Has WAnchor made some changes in 3.1.11 ?

Regard,
V.E.O

KD Updated by Koen Deforche almost 15 years ago Actions #3

  • Status changed from Feedback to InProgress

Hey,

Yes indeed. For the reason mentioned above, namely that an anchor without href is not valid. What should be fixed is that the widget should be re-rendered once you set an anchor value.

Regards,
koen

KD Updated by Koen Deforche almost 15 years ago Actions #4

  • Status changed from InProgress to Resolved

I've implemented the span-to-anchor switch. Will be pushed soon.

Regards,
koen

KD Updated by Koen Deforche almost 15 years ago Actions #5

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: PDF Atom