Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18784
| From | Cezary Tomczyk <cezary.tomczyk@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Clean up HTML content |
| Date | 2013-03-09 11:37 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <khf3dr$aro$2@speranza.aioe.org> (permalink) |
| References | <kh4813$lkv$1@speranza.aioe.org> <1986e356-3a1a-4fa8-b6a2-b358b3a2d6f2@googlegroups.com> |
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