Closed
Bug 75671
Opened 24 years ago
Closed 24 years ago
element.innerHTML returns formated value.
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
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
&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;
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><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>
<INPUT TYPE="button" NAME="but1" VALUE="Show me innerHTML"
onclick="showinnerHTML();">
</FORM>
</BODY>
</HTML>
HTML CODE END
Comment 3•24 years ago
|
||
*** This bug has been marked as a duplicate of 60619 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•