Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 377069

Summary: Support additional common attributes and elements in markup
Product: [RT] RAP Reporter: Gunnar Wagenknecht <gunnar>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Gunnar Wagenknecht CLA 2012-04-18 05:29:28 EDT
It's possible to use markup direclty in RWT widgets. Especially for labals it would be useful to also support a few more common elements as well as attributes.

* <p></p>
* attribute "alt" on <a> (likely also "title")

Both are supported by FormText.
Comment 1 Ivan Furnadjiev CLA 2012-04-18 05:46:14 EDT
Gunnar, in the first implementation, we decided to support *only* inline HTML elements. That's why <p> as a block-level element is not included. There is no "alt" attribute on the <a> tag. Maybe you have in mind "alt" attribute on the <img> tag? "title" attribute on <a> tag is not a problem.
Comment 2 Gunnar Wagenknecht CLA 2012-04-18 05:56:32 EDT
(In reply to comment #1)
> Gunnar, in the first implementation, we decided to support *only* inline HTML
> elements. That's why <p> as a block-level element is not included.

I see. I just thought it would make porting FormText to Label easier. I can understand that markup should be the same everywhere.

> There is no
> "alt" attribute on the <a> tag.

So I figured it works "by accident" in RAP today. I had it in FormText to let the Browser render a tooltip when you hover over the links. But I don't mind moving to the official HTML documented standard attributes.
Comment 3 Ivan Furnadjiev CLA 2012-04-18 06:08:13 EDT
Added support for "title" and "alt" attributes to <img> tag, "title" attribute to <a> tag.
Comment 4 Gunnar Wagenknecht CLA 2012-04-18 06:19:15 EDT
Perfect. You may close this one one. I'll use your Infobox from the examples to simulate "paragraphs"
Comment 5 Ivan Furnadjiev CLA 2012-04-18 06:28:58 EDT
(In reply to comment #4)
> Perfect. You may close this one one.