…lines 1–82 unchanged (82 lines)
83 if (!el.tag().isFormSubmittable()) continue; // contents are form listable, superset of submitable
84 if (el.hasAttr("disabled")) continue; // skip disabled form inputs
85 String name = el.attr("name");
86 if (name.length() == 0) continue;
87 String type = el.attr("type");
88
89 if (type.equalsIgnoreCase("button")) continue; // browsers don't submit these
90
91 if ("select".equals(el.normalName())) {
92 Elements options = el.select("option[selected]");
93 boolean set = false;
94 for (Element option: options) {
95 data.add(HttpConnection.KeyVal.create(name, option.val()));
…lines 96–116 unchanged (21 lines)