Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I don't know why IE8 inserting Empty Text Node between two spans. It is working fine in mozilla.

I have applied display block on both spans and the container div. but it didn't solove the problem.

Here its the render code:

HTML
<div style="width: 160px; display: block;">
<span>
Text - Company / Institute Name*
<span title="Company or Institute name is required" class="error" for="textintName" generated="true">
   Text - Company or Institute name is required
Text - Empty Text Node
<input name="InstName" class="error" id="textintName" maxLength="200" default-title="Company or Institute name is required."/>
Posted
Updated 31-Jan-12 17:05pm
v2
Comments
Christian Graus 31-Jan-12 22:58pm    
You need to post some code. Do you mean it inserts the words 'empty text node' ? IE does not change your HTML, it only renders it. How is it rendering differently ? Post some code.
Jagz W 31-Jan-12 23:05pm    
Sir, i have posted the rendered HTML.

There is zero chance than IE8 is inserting this text. ASP.NET DOES change what it renders to suit each browser, but somehow your code is creating this. Perhaps you need to step through your code, and perhaps even post the code that generates this HTML, because what you're saying is impossible. IE8 renders HTML. It does not create it.
 
Share this answer
 
close your span tag. As you have open tag and missing closing tag
XML
<div style="width: 160px; display: block;">
<span>
Text - Company / Institute Name*
<span title="Company or Institute name is required" class="error" for="textintName" generated="true">
   Text - Company or Institute name is required
Text - Empty Text Node
<input name="InstName" class="error" id="textintName" maxLength="200" default-title="Company or Institute name is required."/>
 
Share this answer
 
v2
Comments
Jagz W 1-Feb-12 2:43am    
This is rendered code.that's why closing tags are missing.
Anuja Pawar Indore 1-Feb-12 2:55am    
its working fine. Better you give you code rather than render code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900