Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18784
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Cezary Tomczyk <cezary.tomczyk@gmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Clean up HTML content |
| Date | Sat, 09 Mar 2013 11:37:56 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 25 |
| Message-ID | <khf3dr$aro$2@speranza.aioe.org> (permalink) |
| References | <kh4813$lkv$1@speranza.aioe.org> <1986e356-3a1a-4fa8-b6a2-b358b3a2d6f2@googlegroups.com> |
| NNTP-Posting-Host | 5+3Bi1ejFX5GyqycRALQ7Q.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.javascript:18784 |
Show key headers only | View raw
W dniu 2013-03-07 23:28, Danny pisze: > To Cezary Tomczyk > > After checking in firebug/inspector(google chrome) with a few > breakpoints and steps-into, it turns out that in the end you're > hosing the IMGs on line 65, since createTextNode() only returns a > text/plain string. The 'undefined' string came out in the end, after > a removeChild() [line 57], I didn't give much tracking to that, but I > think it was just some inserted object in the iterated node. > > Anyhow, I rewrote it some -> http://www.webdevout.net/test?02N&raw > using a DocumentFragment, prepending text and images, in case it > helps Looks not bad, thanks, but there is still empty nodes there. I will look more deeply in your code now. By the way. Do test like this: try to create some simple text with MS Word, apply some formatting like bold, italic and underline. Copy it and paste into "div" element. Make a tidy up and look after all into source code. There is still empty nodes which I wanted to also remove. :/ -- Cezary Tomczyk http://www.ctomczyk.pl/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Clean up HTML content Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-03-05 08:48 +0100
Re: Clean up HTML content Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-05 17:55 +0100
Re: Clean up HTML content Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-03-05 20:25 +0100
Re: Clean up HTML content Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-06 00:03 +0100
Re: Clean up HTML content Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-06 00:08 +0100
Re: Clean up HTML content Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-03-06 22:06 +0000
Re: Clean up HTML content Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-03-10 01:14 +0100
Re: Clean up HTML content Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-03-06 22:02 +0100
Re: Clean up HTML content Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-06 23:45 +0100
Re: Clean up HTML content Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-03-09 11:29 +0100
Re: Clean up HTML content Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-09 16:11 +0100
Re: Clean up HTML content Danny <dann90038@gmail.com> - 2013-03-07 14:28 -0800
Re: Clean up HTML content Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2013-03-09 11:37 +0100
Re: Clean up HTML content dann90038@gmail.com - 2013-03-09 11:44 -0800
csiph-web