Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IE7 ASP.NET HTML
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:
 
<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 31-Jan-12 17:57pm
Jagz W1.9K
Edited 31-Jan-12 18:05pm
v2
Comments
Christian Graus at 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.
J walia at 31-Jan-12 23:05pm
   
Sir, i have posted the rendered HTML.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

close your span tag. As you have open tag and missing closing tag
<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."/>
  Permalink  
v2
Comments
J walia at 1-Feb-12 2:43am
   
This is rendered code.that's why closing tags are missing.
Anuja Pawar Indore at 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)

  Print Answers RSS
0 Kornfeld Eliyahu Peter 275
1 Maciej Los 214
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 163
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 1 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100