jdk/src/share/classes/javax/swing/text/html/FormView.java
changeset 21278 ef8a3a2a72f2
parent 20158 1c5d22e5b898
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   661                     String type = (String)next.getAttributes().getAttribute
   661                     String type = (String)next.getAttributes().getAttribute
   662                                        (HTML.Attribute.TYPE);
   662                                        (HTML.Attribute.TYPE);
   663 
   663 
   664                     if (type != null && type.equals("submit") &&
   664                     if (type != null && type.equals("submit") &&
   665                         next != getElement()) {
   665                         next != getElement()) {
   666                         // do nothing - this submit isnt the trigger
   666                         // do nothing - this submit is not the trigger
   667                     } else if (type == null || !type.equals("image")) {
   667                     } else if (type == null || !type.equals("image")) {
   668                         // images only result in data if they triggered
   668                         // images only result in data if they triggered
   669                         // the submit and they require that the mouse click
   669                         // the submit and they require that the mouse click
   670                         // coords be appended to the data.  Hence its
   670                         // coords be appended to the data.  Hence its
   671                         // processing is handled by the view.
   671                         // processing is handled by the view.