Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31758
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-12-01 13:09 -0800 |
| References | <dc07c4cd-7623-42e4-abe0-972601884ec3@googlegroups.com> <XnsA6D16E788D90Eeejj99@194.109.6.166> <HoZ%z.108664$WF4.105232@fx39.am4> |
| Message-ID | <ace5146d-ac7a-43dc-94dd-d4ef68a81055@googlegroups.com> (permalink) |
| Subject | Re: Replacing javascript line break (\n) with HTML line break (<br/>) |
| From | justaguy <lichunshen84@gmail.com> |
On Thursday, December 1, 2016 at 12:49:32 PM UTC-5, Cybercode wrote: > Evertjan. <> wrote: > > justaguy <> wrote on 01 Dec 2016 in > > comp.lang.javascript: > > > >> turn js line breaks inside HTML Textarea tag into HTML line breaks, <br/> > > > > <br/> is NOT HTML, but XML. Why should you use that????????? > > > > <br> is HTML. > > "A Self-closing tag is a special form of start tag with a slash immediately before the closing right angle bracket. These indicate that the > element is to be closed immediately, and has no content. Where this syntax is permitted and used, the end tag must be omitted. In HTML, > the use of this syntax is restricted to void elements and foreign elements. If it is used for other elements, it is treated as a start > tag. In XHTML, it is possible for any element to use this syntax. But note that it is only conforming for elements with content models > that permit them to be empty." > - https://dev.w3.org/html5/html-author/ > > I think that this means that <br/> is valid in html5. Great, thank you. Btw, my js code works across board now (for all the Textarea elements in the page), previously I forgot to give one Textarea element an ID.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Replacing javascript line break (\n) with HTML line break (<br/>) justaguy <lichunshen84@gmail.com> - 2016-11-30 19:15 -0800
Re: Replacing javascript line break (\n) with HTML line break (<br/>) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-01 10:51 +0100
Re: Replacing javascript line break (\n) with HTML line break (<br/>) justaguy <lichunshen84@gmail.com> - 2016-12-01 05:55 -0800
Re: Replacing javascript line break (\n) with HTML line break (<br/>) justaguy <lichunshen84@gmail.com> - 2016-12-01 05:59 -0800
Re: Replacing javascript line break (\n) with HTML line break (<br/>) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-01 16:41 +0100
Re: Replacing javascript line break (\n) with HTML line break (<br/>) Cybercode <lambda@dr.com> - 2016-12-01 17:49 +0000
Re: Replacing javascript line break (\n) with HTML line break (<br/>) justaguy <lichunshen84@gmail.com> - 2016-12-01 13:09 -0800
Re: Replacing javascript line break (\n) with HTML line break (<br/>) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-01 23:13 +0100
Re: Replacing javascript line break (\n) with HTML line break (<br/>) rmmjr@rmmillerjr.com - 2016-12-11 07:10 -0800
Re: Replacing javascript line break (\n) with HTML line break (<br/>) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-11 16:53 +0100
Re: Replacing javascript line break (\n) with HTML line break (<br/>) rmmjr@rmmillerjr.com - 2016-12-11 07:10 -0800
csiph-web