Closed Bug 75671 Opened 23 years ago Closed 23 years ago

element.innerHTML returns formated value.

Categories

(Core :: DOM: CSS Object Model, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 60619
Future

People

(Reporter: desale, Assigned: jst)

References

()

Details

BUILDS: 
2001-04-10-04 [Win95]
2001-04-10-04 [Mac]
2001-04-10-14 {Linux]

STEPS TO REPRODUCE:
1] Please visit URL above.
2] Click button "Show me innerHTML"

EXPECTED RESULTS: alert should show message like following
<A HREF='mailto:somebody@something.com'>Do You Want To Mail Me ????????</A><BR>
<IMG    SRC='../res/highstar.gif' width=30 height=15 alt='Mailbox'>

ACTUAL RESULTS: alert shows message like following
&amp;lt;A HREF='mailto:somebody@something.com'&amp;gt;Do You Want To Mail Me 
????????&amp;lt;/a&amp;gt;&amp;lt;BR&amp;gt; &amp;lt;IMG 
SRC='../res/highstar.gif' width=30 height=15 alt='Mailbox'&amp;gt;

pasting code used in testcase at above URL.

HTML CODE START

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<DIV ID="prashant" STYLE="position:absolute; width:auto; height:auto; 
left:400px; top:550px; background-color:white">
<XMP>
<A HREF='mailto:somebody@something.com'>Do You Want To Mail Me ????????</A><BR>
<IMG    SRC='../res/highstar.gif' width=30 height=15 alt='Mailbox'>
</XMP>
</DIV>

<script>
<!--
function showinnerHTML(){
	var t=document.getElementById('prashant').innerHTML;
  	alert(t);
}
//-->
</script>
<FORM NAME="secondform">
EXPECTED RESULTS:
alert should show  message like following<br>
<XMP>
<A HREF='mailto:somebody@something.com'>Do You Want To Mail Me ????????</A><BR>
<IMG    SRC='../res/highstar.gif' width=30 height=15 alt='Mailbox'></XMP>
<br><br>
ACTUAL RESULTS:
alert shows  message like following<br>
<XMP>&lt;A HREF='mailto:somebody@something.com'&gt;Do You Want To Mail Me 
????????&lt;/a&gt;&lt;BR&gt; &lt;IMG SRC='../res/highstar.gif' width=30 
height=15 alt='Mailbox'&gt;</XMP>
<br><br>

<INPUT TYPE="button" NAME="but1" VALUE="Show me innerHTML" 
onclick="showinnerHTML();">
</FORM>
</BODY>
</HTML>

HTML CODE END
This could be a dup of 75543
Future.
Target Milestone: --- → Future


*** This bug has been marked as a duplicate of 60619 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.