Bug #807
closedAnchor text default FormatType
0%
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("foobar");
You get:
[error] "Error reading XHTML string: invalid closing tag name"
And with this:
a->setText("foobar");
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
Updated by Koen Deforche over 13 years ago
- 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.
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11