[ http://issues.apache.org/jira/browse/BEEHIVE-1005?page=comments#action_12357636 ]
Carlin Rogers commented on BEEHIVE-1005: ---------------------------------------- With the change in BEEHIVE-841, we appended a "\n" after the rendering of the textarea start tag and before the content. When this is rendered directly into an HTML document in a browser, the leading newline is stripped from the value of the textarea. The tests described in the original bug behave correctly. However, one noted issue... With some browser DOM manipulation, when our tag output is inserted into an HTML document via the innerHTML property, FireFox, however, preserves the newline in the textarea value. Note that IE strips the newline from the value of the textarea. I think it would be best to revert back to not appending the "\n" unless the known content starts with a new line. This would still solve the problem for BEEHIVE-841 as well as solve the issue noted with the the use of the browser DOM manipulation noted here. I'll make this change shortly. > Don't add a "\n" after the textarea start tag rendering unless there's a > leading blank line in a netui:textArea content. > ------------------------------------------------------------------------------------------------------------------------ > > Key: BEEHIVE-1005 > URL: http://issues.apache.org/jira/browse/BEEHIVE-1005 > Project: Beehive > Type: Bug > Components: NetUI > Versions: V1 > Reporter: Carlin Rogers > Assignee: Carlin Rogers > Priority: Minor > Fix For: 1.1 > > When the netui:textarea contains blank line(s) in the beginning, the first > blank line always gets removed. > I will attach a repro app. > Repro Description: Takes input from a text area and outputs it into another > text area. If the first line from the input is a blank line then a carriage > return is output after the textArea rendering and continue on with the text. > The blank line should be included in the rendered text area. > Visual description: > Enter the following into the first textbox: "\nMyText" (where \n is a return > or the input from the datasource) > Click Submit / Next Action > Expected output of the second textbox: > <textArea> > MyText</textArea> > Actual output in the second textbox: > <textArea> > MyText</textArea> > The reason is the first \n is used as the return after the textArea tag > instead of including the \n at the end of the rendered text area start tag. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
