This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2798 - Error: end tag for element "A" which is not open.
Summary: Error: end tag for element "A" which is not open.
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 major
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL: http://www.cs-software.com/W3C_A_01.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-03 09:21 UTC by Jerry A Green
Modified: 2006-02-05 09:33 UTC (History)
1 user (show)

See Also:


Attachments

Description Jerry A Green 2006-02-03 09:21:47 UTC
Validation Error:

<!-- script below has closing </a> but it does not validate -->
<script type="text/javascript">
<!--
if (location.protocol == "http:")
  { document.write("<a href='https://www.cs-software.com/test_order.html'> click
here for secure Order Form</a>")
  }
-->
</script>

Error: Line 12 column 110: end tag for element "A" which is not open.
Sample Source file: http://www.cs-software.com/W3C_A_01.html

***************

<!-- script below has missing closing </a> but it validates -->
<script type="text/javascript">
<!--
if (location.protocol == "http:")
  { document.write("<a href='https://www.cs-software.com/test_order.html'> click
here for secure Order Form")
  }
-->
</script>
Sample Source File: http://www.cs-software.com/W3C_A_02.html
Comment 1 Ville Skyttä 2006-02-05 09:33:34 UTC
Like the validator's error message about your _01 document says:

   "If this error occured in a script section of your document, you should
    probably read this FAQ entry."
   http://validator.w3.org/docs/help.html#faq-javascript