| Summary: | [api] add NodeHelper#getAttributeValueRegion | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Ian Tewksbury <itewksbu> | ||||
| Component: | Web | Assignee: | Project Inbox <jsdt.web-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.2 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ian Tewksbury
Created attachment 170394 [details]
Patch
This patch moves most of the logic in #getAttributeValue to a new method #getAttributeValueRegion and then calls this new method from the existing #getAttributeValue to prevent any duplicate code.
(In reply to comment #0) > Right now NodeHelper only has a #getAttributeValue which returns the string > value of a given attribute name but it would also be useful to have a > #getAttributeValueRegion which would return the ITextRegion with the value. For what purpose? Doesn't fit the other methods on the class. closing. |