Bug #970
closedWAnchor illustrated as <span> when no WResourse or Url defined
0%
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
Updated by Koen Deforche about 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
Updated by V.E.O V.E.O about 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
Updated by Koen Deforche about 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
Updated by Koen Deforche about 13 years ago
- Status changed from InProgress to Resolved
I've implemented the span-to-anchor switch. Will be pushed soon.
Regards,
koen
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11