facebook

HTML validator: "Start tag () not closed.&quot

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242078 Reply

    Victor Ott
    Member

    Hello again,

    I have imported some HTML docs from another project, and … everything red because of HTML validator errors. Fixed most of them, but the one below puzzles me: the validator issues the
    “Start tag (<a>) not closed.”
    complaint the sequence
    <a href=”javascript:void(0)” onMouseOver=”JavaScript:displayLink(‘
    Setting the DOCTYPE makes no difference.

    Any ideas what’s wrong?
    Victor

    <html>
      <head>
      </head>
      <body>
    <a href="javascript:void(0)" onMouseOver="JavaScript:displayLink('<a href=glossary.htm>Glossary</a><br>')">gl</a><br/>
    <a href="javascript:void(0)" onMouseOver="JavaScript:displayLink('<a href=dudududadada.htm>aljfaljal</a><br>')"acc</a><br/>
      </body>
    </html>

    My configuration:

    *** Date: Fri Nov 25 16:32:08 CET 2005
    
    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_05
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 4.0.3 GA
    Build id: 20051025-4.0.3-GA
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.1.1
    Build id: M20050929-0840
    
    Eclipse Platform
    
    Version: 3.1.1
    Build id: M20050929-0840
    
    Eclipse RCP
    
    Version: 3.1.1
    Build id: I20050627-1435
    
    Eclipse Java Development Tools
    
    Version: 3.1.1
    Build id: I20050627-1435
    
    Eclipse Plug-in Development Environment
    
    Version: 3.1.1
    Build id: I20050627-1435
    
    Eclipse Project SDK
    
    Version: 3.1.1
    Build id: M20050929-0840
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    E:\progs\eclipse31\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    1c98_768
    -vm
    e:\java\jdk15\jre\bin\javaw.exe
    #242198 Reply

    Scott Anderson
    Participant

    vict0r,

    Thanks for taking the time to report this. It’s definately a bug and we’ve filed the appropriate bug report with this example. In the interim, you can remove the validation error by turing off HTML validation for the particular project if you find it distracting.

    #261276 Reply

    Victor Ott
    Member

    Hi,
    any news on this?
    Regards,
    Victor

    #261278 Reply

    joquarky
    Member

    I’m not sure exactly what you’re trying to do since I don’t kow what the displayLink function does, but maybe removing the nested <a> elements might make the parser happy. You could do this by calling a new function which builds the nested tag and then sends it to the original displayLink function.

    Something like this might work:

    
    <html>
    <head>
    <script language="JavaScript">
    <!--
    function mouseOverLink(url,text){
      displayLink('<a href="'+escape(url)+'">'+text+'</a><br>');
    }
    // -->
    </head>
    <body>
      <a href="javascript:void(0)" onMouseOver="mouseOverLink('glossary.htm','Glossary')">gl</a><br />
      <a href="javascript:void(0)" onMouseOver="mouseOverLink('dudududadada.htm','aljfaljal')">acc</a><br />
    </body>
    </html>
    
    #262433 Reply

    i’m gettting a similar error, but on HTML comments (<!– –>) in the HTML sections of my JSP files.

    So what I’m hearing is that the only way to keep the error messages and red squigglies from appearing is to turn off the HTML validator – is that correct? Kina nullifies the usefulness of the validator, doesn’t it? Oh well…

Viewing 5 posts - 1 through 5 (of 5 total)