vessillo / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

Replace in HTML does not work for some webs #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

1. Open some page on www.builder.cz, e.g. 
http://forum.builder.cz/read.php?108,3345825
2. Press Shift-F2 for replace
3. Search anything, e.g. "email" and replace it with something, e.g. "mail". 
Click HTML and choose regular expression mode
4. Click on replace. Javascript error "TypeError: body.singleNodeValue is null" 
is displayed

Using Firefox 12.0 on Windows 7

Original issue reported on code.google.com by mi.chal....@gmail.com on 26 May 2012 at 9:43

GoogleCodeExporter commented 9 years ago
This error doesn't happen when JavaScript is disabled in that page, but I still 
don't know why. I will investigate it.

Original comment by marc.r...@gmail.com on 26 May 2012 at 12:56

GoogleCodeExporter commented 9 years ago
A have actually fixed it on my machine by editing foxreplace.js and adding 
check for null value in method replaceHTML

if (body.singleNodeValue) {
  body.singleNodeValue.innerHTML = aGroup.replace(body.singleNodeValue.innerHTML);
}

Original comment by mi.chal....@gmail.com on 26 May 2012 at 4:05

GoogleCodeExporter commented 9 years ago
I can't reproduce it anymore in current version (0.14.0). Probably fixed in 
r168.

Original comment by marc.r...@gmail.com on 26 Jan 2013 at 11:36