Project

General

Profile

Actions

Bug #970

closed

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

Added by V.E.O V.E.O over 13 years ago. Updated about 13 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

Actions #1

Updated by Koen Deforche over 13 years ago

  • 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

Actions #2

Updated by V.E.O V.E.O over 13 years ago

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

Actions #3

Updated by Koen Deforche over 13 years ago

  • 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

Actions #4

Updated by Koen Deforche over 13 years ago

  • Status changed from InProgress to Resolved

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

Regards,

koen

Actions #5

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF