For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 4 voices, and was last updated 19 years, 4 months ago by
estone_intuit.
-
AuthorPosts
-
Victor OttParticipantHello 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.exeNovember 28, 2005 at 4:17 pm #242198
Scott AndersonParticipantvict0r,
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.
November 2, 2006 at 10:02 am #261276
Victor OttParticipantHi,
any news on this?
Regards,
VictorNovember 2, 2006 at 11:14 am #261278
joquarkyMemberI’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>November 21, 2006 at 4:36 pm #262433
estone_intuitMemberi’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…
-
AuthorPosts
