Whitespace in the title.

For topics about current BETA or future releases, including feature requests.
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Whitespace in the title.

Post 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:
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Post 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>
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial