use of org.w3c.dom.html.HTMLSelectElement in project intellij-plugins by StepicOrg.
the class StepDescriptionUtils method getBlanks.
private static List<String> getBlanks(@NotNull Elements elements) {
List<String> blanks = new ArrayList<>();
for (Node node : elements) {
if (node instanceof HTMLInputElement) {
HTMLInputElement element = (HTMLInputElement) node;
String type = element.getType();
if ("text".equals(type)) {
blanks.add(element.getValue());
}
element.setDisabled(true);
} else if (node instanceof HTMLSelectElement) {
HTMLSelectElement element = (HTMLSelectElement) node;
blanks.add(element.getValue());
element.setDisabled(true);
}
}
return blanks;
}
Aggregations