Opened 14 years ago

Closed 14 years ago

#562 closed defect (fixed)

SpellChecker Javascript Error

Reported by: foxpaw@… Owned by: gogo
Priority: normal Milestone:
Component: Plugin_SpellChecker Version:
Severity: normal Keywords:
Cc:

Description (last modified by gogo)

When using the SpellChecker? from the nightly (cgi version, not php although I don't think it matters because it's a UI issue) I get the following error:

Error: document.getElementById("b_learn").parent has no properties
Source File: http://my.dev10.infostreet.com/images/htmlarea3/plugins/SpellChecker/spell-check-ui.js
Line: 241

Here's a patch to fix the problem (the attribute it should be accessing is parentNode, not parent):

--- plugins/SpellChecker/spell-check-ui.js.orig 2005-10-19 15:29:16.000000000 +0000
+++ plugins/SpellChecker/spell-check-ui.js  2005-10-19 15:29:48.000000000 +0000
@@ -238,7 +238,7 @@
   }
   else
   {
-    document.getElementById("b_learn").parent.removeChild(document.getElementById("b_learn"));
+    document.getElementById("b_learn").parentNode.removeChild(document.getElementById("b_learn"));
   }
   document.getElementById("b_replall").onclick = replaceAllClicked;
   document.getElementById("b_ignore").onclick = ignoreClicked;
@@ -442,4 +442,4 @@
       return false;
     };
   }
-};
\ No newline at end of file
+};

Change History (1)

comment:1 Changed 14 years ago by gogo

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed

Applied in changeset:388

Note: See TracTickets for help on using tickets.