Page 1 of 1

Whitespace in the title.

Posted: Tue Jun 10, 2008 1:17 pm
by RSteinwand
I have <% ... %> in tags to 'ASP' checked.

Here is the flagged code:
<title><%= Session.GetIcSessionVar("SBN") %> - Trace Request</title>

Here is the error:
[118] The text content of the "title" element begins with whitespace. This may not be wanted.

Although the server code is ignored, it should not be presumed to be empty, in my mind.

Sorry, I'm probably picking nits. :roll:

Posted: Tue Jun 10, 2008 1:24 pm
by RSteinwand
On a related note, this flags as a JavaScript syntax error, I suspect b/c it it's presumed to be empty:

<div id="nav"><script type="text/javascript"><%= GetMenu() %></script></div>

Posted: Thu Jun 12, 2008 10:27 am
by Albert Wiersch
Thanks. I have made a note to try to improve this issue in a future version. I'm not sure if it will make it into v9.0 though (depends on time to look into it and implement a solution). CSE HTML Validator tries to validate raw script files with a minimum of fuss but is not designed to as its main purpose.

More info:
Validate Hot to Documents that use Server Side Scripting

UPDATE: I was able to address the message about the title in the next BETA. The JavaScript message is generated by JavaScript Lint. I don't see any good solution to this. It's probably best to just ignore the message.