1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 11:15:47 +01:00
This commit is contained in:
Kris Maglione
2013-04-27 20:55:05 -07:00
parent b71d56e4fe
commit 2879caf75e
4 changed files with 17 additions and 6 deletions

View File

@@ -499,8 +499,15 @@ var DOM = Class("DOM", {
if (DOM(elem).isInput
|| /^(?:hidden|textarea)$/.test(elem.type)
|| elem.type == "submit" && elem == field
|| elem.checked && /^(?:checkbox|radio)$/.test(elem.type))
elems.push(encode(elem.name, elem.value, elem === field));
|| elem.checked && /^(?:checkbox|radio)$/.test(elem.type)) {
if (elem !== field)
elems.push(encode(elem.name, elem.value));
else if (overlay.getData(elem, "had-focus"))
elems.push(encode(elem.name, elem.value, true));
else
elems.push(encode(elem.name, "", true));
}
else if (elem instanceof Ci.nsIDOMHTMLSelectElement) {
for (let [, opt] in Iterator(elem.options))
if (opt.selected)