Script Error Checking (v9.0010)

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
paulp575
Rank IV - Intermediate
Posts: 170
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA

Script Error Checking (v9.0010)

Post by paulp575 »

I ma getting the following error:

Code: Select all

[JavaScript] html error: script tag should be empty if a src attribute is specified
in response to the following line:

Code: Select all

<script type="text/javascript" language="JavaScript" src="0-s-menu_files/tree.js"> <!-- --> </script>
Just a bit confused by what the error message is telling me!

Thanks,

paulp575
paulp575
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Script Error Checking (v9.0010)

Post by Albert Wiersch »

paulp575 wrote:I ma getting the following error:

Code: Select all

[JavaScript] html error: script tag should be empty if a src attribute is specified
in response to the following line:

Code: Select all

<script type="text/javascript" language="JavaScript" src="0-s-menu_files/tree.js"> <!-- --> </script>
Just a bit confused by what the error message is telling me!
It's wanting something like this (where the content is empty):

Code: Select all

<script type="text/javascript" language="JavaScript" src="0-s-menu_files/tree.js"></script>
Try removing the " <!-- --> ". There's really no need for it.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial