3.2.0

Unmatched Tags 2.5.3

Running Web Inspector as part of QA. It appears that there are problems with the ImageText subclass that are not matching the <input> and <img> tags with the closing values.

The HTML that caused this error was generated by a script. Unmatched </input> encountered. Ignoring tag.

Same for </img>
Myshka
May 15,
Are you sure it is coming from AW code? AW does not use <img> tag anywhere in the controls.
Alex (ActiveWidgets)
May 18,
Yes. The entire form is rendered in JS using the AW library to create all of the controls. The more complex the form, the more of the errors that show up in Web Inspector.

The forms are generated dynamically using Pavuk IDF - an application generator. Based upon application properties, the forms are created along with all input fields. Mostly AW.UI.Input an various derivatives.

The execution line that Web Inspector shows is the </form> tag where the form has been loaded and the AW controls inside of <script>...</script> are executed.

The forms run nicely, but, it is a good practice to eliminate all errors for compatibility and best practices.

--snip

var d01600103 = new AW.UI.Input;
d01600103.setId("d01600103");
d01600103.setName("d01600103");
d01600103.setControlText("");
page1.setContent("d01600103",d01600103.toString());

--snip

A very simple input.

--snip

var d028001 = new AW.UI.Radio;
d028001.setId("d028001");
d028001.setName("d028001");
d028001.getItemTemplate(0).setStyle("width","100px");
d028001.getItemTemplate(1).setStyle("width","100px");
d028001.getItemTemplate(2).setStyle("width","100px");
d028001.getItemTemplate(3).setStyle("width","100px");
d028001.setItemValue(["Employed","FT Student","PT Student","Other"]);
d028001.setItemText(["Employed","FT Student","PT Student","Other"]);
d028001.setControlValue("");
d028001.setItemCount(4);
d028001.setSelectedItems([]);
d028001.setControlValue("");
d028001.onSelectedItemsChanged = function(items){
var index = items[0]; // assume there is one selected item
var value = this.getItemValue(index);
this.setControlValue(value);
}
d028001.onControlValueChanged = function(){
this.getContent("data").refresh();
}
d028001.setClass("flow","horizontal");
d028001.getContent("data").refresh();
page1.setContent("d028001",d028001.toString());

--snip

A more complex radio control.


Myshka
May 18,

This topic is archived.

See also:


Back to support forum