1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-11 13:04:13 +01:00

Properly stringify DOM nodes in completion list.

This commit is contained in:
Kris Maglione
2010-09-23 08:47:57 -04:00
parent 14c43ef218
commit 0a52ebfc19

View File

@@ -139,6 +139,8 @@ const Template = Module("Template", {
case "undefined":
return <span highlight="Null">{arg}</span>;
case "object":
if (arg instanceof Ci.nsIDOMElement)
return util.objectToString(arg, false);
// for java packages value.toString() would crash so badly
// that we cannot even try/catch it
if (/^\[JavaPackage.*\]$/.test(arg))