Whitespace in the title.

For topics about current BETA or future releases, including feature requests.

Whitespace in the title.

Postby RSteinwand » Tue Jun 10, 2008 1:17 pm

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 IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Postby RSteinwand » Tue Jun 10, 2008 1:24 pm

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
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 199
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Postby Albert Wiersch » Thu Jun 12, 2008 10:27 am

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


Return to CSE BETA Talk

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron