Opened 13 years ago

Closed 10 years ago

#8496 closed task (fixed)

shave some bytes from

Reported by: Douglas Hays Owned by: James Burke
Priority: low Milestone: 1.5.2
Component: IO Version: 1.2.3
Keywords: Cc:
Blocked By: Blocking:


The method _fireNextRequest in dojo/io/iframe contains

        tn = dojo.doc.createElement("<input type='hidden' name='"+name+"'>");
        tn = dojo.doc.createElement("input");
        tn.type = "hidden"; = name;

but this should just be

        tn = dojo.doc.createElement("input");
        tn.type = "hidden"; = name;

The type and name can be set as long as the node isn't added to the body yet. Similar code is done in dijit.form.MappedTextBox? without problems. This is probably a carryover from IE5 days.

Change History (4)

comment:1 Changed 13 years ago by Douglas Hays

using dojo.create would save a few more bytes

comment:2 Changed 13 years ago by Adam Peller

Owner: changed from anonymous to James Burke

comment:3 Changed 13 years ago by James Burke

Milestone: tbdfuture

comment:4 Changed 10 years ago by bill

Component: CoreIO
Milestone: future1.5.2
Resolution: fixed
Status: newclosed

Fixed by me in [23745].

Note: See TracTickets for help on using tickets.