Project

General

Profile

Actions

Bug #807

closed
KR KD

Anchor text default FormatType

Bug #807: Anchor text default FormatType

Added by Kurt Roeckx over 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
05/02/2011
Due date:
% Done:

0%

Estimated time:

Description

Hi,

When doing something like:
WAnchor *a = new WAnchor(root());
a->setText("< 100");

The log file will show:
[error] "Error reading XHTML string: expected element name"

When using something like this instead:
a->setText("foo
bar");
You get:
[error] "Error reading XHTML string: invalid closing tag name"

And with this:
a->setText("foo
bar");
You get no error.

The first 2 show the original text, while the last actually renders the break.

I have a 2 problems with this:

- I wasn't expecting that the WText would be created with TextFormat set to Wt::XHTMLText, I was expecting Wt::PlainText

  • I can't control either the TextFormat or the WText itself.

Kurt

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

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey Kurt,

I've added WAnchor::setTextFormat() and documented the default (XHTMLText).

You can work around this issue by not using the text API from WAnchor but adding your own WText() to it instead.

Regards,
koen.

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

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: PDF Atom