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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user