Browse Source

don't pass checkbox/radio values yet, remove body debug

master
Odilitime 4 years ago
parent
commit
d7a828e842
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/graphics/elements/INPUTElement.cpp

+ 9
- 1
src/graphics/elements/INPUTElement.cpp View File

@@ -16,7 +16,7 @@ void handleResource(WebResource &res, std::string url, DocumentComponent *docCom
return;
}
std::cout << "body: " << res.raw << std::endl;
//std::cout << "body: " << res.raw << std::endl;
//std::cout << "type: " << res.resourceType << std::endl;
// parse HTML
@@ -104,6 +104,14 @@ std::unique_ptr<std::map<std::string, std::string>> buildFormData(std::shared_pt
if (typePropIter->second == "submit") {
skip = true;
}
if (typePropIter->second == "checkbox") {
// FIXME: see if it's checked or not
skip = true;
}
if (typePropIter->second == "radio") {
// FIXME: see if it's checked or not
skip = true;
}
}
auto namePropIter = tagNode->properties.find("name");
if (!skip && namePropIter != tagNode->properties.end()) {

Loading…
Cancel
Save