outerHTML quotes being striped..

I have code that I am trying to bring in with a outerHTML it strips out the quotes for some things and not others.  Iinherited the code.   So I am trying to figure this out as well as the whole thing.   And this is the simplest code in it..   it capitalizes removes quotes does all sorts of weird things

Javascript code:

var content='<html><body onscroll="adjustPinHdgRow();"><form name="form1">';
content+=document.all.PinFields.outerHTML;
content+='</form></body></html>';
  document.DPWPIN.document.write(content);
  document.DPWPIN.document.close();
original:
<tr style="display:none;"><td id="PinFields" colspan=06 ><table id="PinTable" border=1 bordercolor=white cellspacing=0 cellpadding=0><tr><th align=left nowrap xxDft="">Pin Number&nbsp;&nbsp;</th>
 
<th align=left nowrap xxDft="">To Pin Number&nbsp;&nbsp;</th></tr><td nowrap class="celltyp3"><input type=text name="PRPIN" value="" size=31 maxlength=31 xxBKV="" xxPinRow="Y" onfocus="document.frames.parent.document.frames.parent.fldEvent(event,this);"
onblur="document.frames.parent.document.frames.parent.fldEvent(event,this);" onchange="document.frames.parent.document.frames.parent.fldEvent(event,this);" onkeydown="document.frames.parent.document.frames.parent.fldEvent(event,this);"
onkeyup="document.frames.parent.document.frames.parent.fldEvent(event,this);" onclick="document.frames.parent.document.frames.parent.fldEvent(event,this);" ondblclick="document.frames.parent.document.frames.parent.fldEvent(event,this);" class="fieldtyp3" xxDT="A" xxReq="N" xxBDsp="Y" xxBPro="N" xxEvt="A" &nbsp;</td>
 
<td nowrap class="celltyp3"><input type=text name="TOPIN" value="" size=31 maxlength=31 xxBKV="" xxPinRow="Y"
onfocus="document.frames.parent.document.frames.parent.fldEvent(event,this);" onblur="document.frames.parent.document.frames.parent.fldEvent(event,this);" onchange="document.frames.parent.document.frames.parent.fldEvent(event,this);"
onkeydown="document.frames.parent.document.frames.parent.fldEvent(event,this);" onkeyup="document.frames.parent.document.frames.parent.fldEvent(event,this);" onclick="document.frames.parent.document.frames.parent.fldEvent(event,this);"
ondblclick="document.frames.parent.document.frames.parent.fldEvent(event,this);" class="fieldtyp3" xxDT="A" xxReq="N" xxBDsp="Y" xxBPro="N" xxEvt="A" &nbsp;</td></tr>
 
outerHTML result:
 
<TD id=PinFields colSpan=6><TABLE id=PinTable border=1 cellSpacing=0 borderColor=white cellPadding=0>
<TBODY>
<TR>
<TH noWrap align=left xxDft="">Pin Number&nbsp;&nbsp;</TH>
<TH noWrap align=left xxDft="">To Pin Number&nbsp;&nbsp;</TH></TR>
<TR>
<TD class=celltyp3 noWrap><INPUT onblur=document.frames.parent.document.frames.parent.fldEvent(event,this); onkeydown=document.frames.parent.document.frames.parent.fldEvent(event,this); class=fieldtyp3 onfocus=document.frames.parent.document.frames.parent.fldEvent(event,this); ondblclick=document.frames.parent.document.frames.parent.fldEvent(event,this); onkeyup=document.frames.parent.document.frames.parent.fldEvent(event,this); onclick=document.frames.parent.document.frames.parent.fldEvent(event,this); onchange=document.frames.parent.document.frames.parent.fldEvent(event,this); maxLength=31 size=31 name=PRPIN xxEvt="A" xxBPro="N" xxBDsp="Y" xxReq="N" xxDT="A" xxBKV="" xxPinRow="Y">&nbsp;</TD>
<TD class=celltyp3 noWrap><INPUT onblur=document.frames.parent.document.frames.parent.fldEvent(event,this); onkeydown=document.frames.parent.document.frames.parent.fldEvent(event,this); class=fieldtyp3 onfocus=document.frames.parent.document.frames.parent.fldEvent(event,this); ondblclick=document.frames.parent.document.frames.parent.fldEvent(event,this); onkeyup=document.frames.parent.document.frames.parent.fldEvent(event,this); onclick=document.frames.parent.document.frames.parent.fldEvent(event,this); onchange=document.frames.parent.document.frames.parent.fldEvent(event,this); maxLength=31 size=31 name=TOPIN xxEvt="A" xxBPro="N" xxBDsp="Y" xxReq="N" xxDT="A" xxBKV="" xxPinRow="Y">&nbsp;</TD></TR>

Open in new window

jc_rockerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ChetOS82Commented:
It is outputting the HTML as IE sees it.  For some reason IE capitalizes the tags, and removes quotes (it doesn't remove them if an attribute is blank).  It also reorganizes attributes.

There is no way around this.  Is it causing you problems?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jc_rockerAuthor Commented:
Like I said I inherited this code and its a nightmare.  The outerHTML takes code that is in a frame and copies it to another frame inside that frame.   That is why there is a  "document.frames.parent.document.frames.parent."   My assumption is that because there is so many onEvents and they back up so many generations that the code gets confused where one thing ends and the other begins with out the quotes.   clicking in the input fields above I simply get the message "Error: Object doesn't support this property or method"...  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.