[Bug 6149] New: String in document.write( ) reporting back as invalid end tag ...

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6149

           Summary: String in document.write( ) reporting back as invalid
                    end tag ...
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: tmecham@campbellsci.com
         QAContact: www-validator-cvs@w3.org


document.write('<layer bgColor="white" style="border:1px solid
black;font-size:12px;">'+text+'</layer>')


-----------------------------
ERROR REPORTED BY VALIDATOR
-----------------------------

   1.   Error  Line 85, Column 124: end tag for element "LAYER" which is not
open.

      …lack;font-size:12px;">'+text+'</layer>')

      &#9993;

      The Validator found an end tag for the above element, but that element is
not currently open. This is often caused by a leftover end tag from an element
that was removed during editing, or by an implicitly closed element (if you
have an error related to an element being used where it is not allowed, this is
almost certainly the case). In the latter case this error will disappear as
soon as you fix the original problem.

      If this error occurred in a script section of your document, you should
probably read this FAQ entry.



------------------------------
FULL HTML SENT TO DIRECT INPUT
------------------------------
<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<title>Gmail</title>
<meta name='generator' content='RTMC WebServer v3.0.25.0 BETA'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta http-equiv='Cache-Control' content='no-cache'>
<meta http-equiv='Cache-Control' content='no-store'>
<meta http-equiv='Cache-Control' content='must-revalidate'>
<meta http-equiv='pragma' content='no-cache'>
<meta http-equiv='expires' content='-1'>
<script type='text/javascript'>
<!--
update_rate = 5; //seconds
time_until_update = 5;
preloaded_image = new Image();
image_loaded = false;

function RTMCInit()
{
   ImageUpdate();
   time_until_update = update_rate;
   setInterval('RTMCUpdate();', 1000);
}

function RTMCUpdate() 
{
   time_until_update--;
   if(time_until_update < 0)
   {
      if(image_loaded)
      {
         ImageUpdate();
         time_until_update = update_rate;
         image_loaded = false;
      }
   }
   else
   {
      window.status = 'Screen Refresh in ' + time_until_update + ' seconds';
   }
}

function OnImagePreloadComplete() 
{
   document.rtmc_image.src = preloaded_image.src;
   preloaded_image = null;
   preloaded_image = new Image();
   image_loaded = true;
}

function OnImageError() 
{
   image_loaded = false;
   window.location.reload(true);
}

function ImageUpdate() 
{
   var cur_time = new Date();
   preloaded_image.onload = OnImagePreloadComplete;
   preloaded_image.onerror = OnImageError;
   preloaded_image.src =
'command=Image&amp;screen=Gmail&amp;session_id=fdfa84f409cc4cea394e1c9b229de980e87cd4664e6f5195&amp;image_id='
+ cur_time.getTime();
}

function RTMCDraw() 
{
   document.write("<img name='rtmc_image' src='command=Image&amp;screen=Gmail'
border='0' usemap='#imagemap'>");
}

function showtip(current,e,text){
   if(document.all||document.getElementById){
      thetitle=text.split('<br>')
         if(thetitle.length>1){
            thetitles=''
               for (i=0;i<thetitle.length;i++)
                  thetitles+=thetitle[i]
               current.title=thetitles
         }
         else
            current.title=text
   }
   else if (document.layers){
      document.tooltip.document.write('<layer bgColor="white" style="border:1px
solid black;font-size:12px;">'+text+'</layer>')
         document.tooltip.document.close()
         document.tooltip.left=e.pageX+5
         document.tooltip.top=e.pageY+5
         document.tooltip.visibility="show"
   }
}

function hidetip(){
   if (document.layers)
      document.tooltip.visibility="hidden"
}
// -->
</script>
<STYLE type='text/css'>
#nav
{
   background: #FFFFFF; 
   padding: 5px 10px 1px; 
   margin: 0; 
   bottom-margin: 3; 
   list-style: none; 
   font: bold 0.8em Verdana, sans-serif; 
   border-bottom: 1px solid #000000;
}
#nav li
{
   display: inline;
}
#nav li a{
      padding: 2px 10px 1px; 
      text-decoration: none; 
      background: #E0DFE3; 
      border: 1px solid #000000; 
      border-bottom-color: #E0DFE3; 
      -moz-border-radius: 10px 10px 0 0;
   }
   #nav li a.current_tab {background: #FFFFFF }
}
a:link    { text-decoration:none; color:blue;  }
a:visited { text-decoration:none; color:blue;  }
a:hover   { text-decoration:none; color:red;   }
a.current_tab:hover { color: #000000 }
a:active  { text-decoration:none; color:black; }
</STYLE>
</head>

<body onload='RTMCInit()'>
<div id="tooltip" style="position:absolute;visibility:hidden"></div>
<ul id='nav'>
<li><a class='current_tab' >Gmail</a></li>
<li><a
href='command=RTMC&amp;screen=Screen&amp;session_id=fdfa84f409cc4cea394e1c9b229de980e87cd4664e6f5195'>Screen</a></li>
<li><a
href='command=RTMC&amp;screen=Screen1&amp;session_id=fdfa84f409cc4cea394e1c9b229de980e87cd4664e6f5195'>Screen1</a></li>
<li><a
href='command=ListAllTables&amp;session_id=fdfa84f409cc4cea394e1c9b229de980e87cd4664e6f5195'>Data
Browser</a></li>
<li><a
href='command=Status&amp;session_id=fdfa84f409cc4cea394e1c9b229de980e87cd4664e6f5195'>Network
Status</a></li>
</ul>
<script type='text/javascript'>
<!--
RTMCDraw();
//-->
</script>
<map name='imagemap'>

<area shape='rect' coords='18,58,303,370' href='http://www.campbellsci.com'
onMouseover="showtip(this,event,'Jump to Campbellsci')" onMouseout="hidetip()"
alt="">
</map>
</body>
</html>


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 9 October 2008 17:09:26 UTC