Is this really kosher?

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

Is this really kosher?

Postby roedygr » Fri Aug 08, 2008 6:31 am

Htms validator did NOT complain about the following. I would have expected it to complain about the use of <br>inside a summary and inside a title .


<table class="borderless" summary="US soldiers preparing <br>to kill with Howitzers"><tbody><tr><td align="center" valign="bottom"><a class="plain" href="http://affiliates.allposters.com/link/redirect.asp?item=3244969&amp;AID=1025105019&amp;PSTID=1&amp;LAID=1&amp;lang=1" target="_top" title="US soldiers preparing <br>to kill with Howitzers">
<img src="http://imagecache2.allposters.com/images/STKPOD/STK102236M_a.jpg" alt="US soldiers preparing <br>to kill with Howitzers" border="0" height="86" width="115"></a></td></tr>
<tr><td align="center" valign="middle"><a class="affiliate" href="http://affiliates.allposters.com/link/redirect.asp?item=3244969&amp;AID=1025105019&amp;PSTID=1&amp;LTID=1&amp;lang=1" target="_top" title="US soldiers preparing <br>to kill with Howitzers">US soldiers preparing <br>to kill with Howitzers</a></td></tr></tbody></table>
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 249
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Postby Albert Wiersch » Fri Aug 08, 2008 9:30 am

I'm not aware of any technical issue (with regards to the HTML specification) with using <br> in those attribute values. However, I can see that this may still be an issue that should be pointed out, maybe with a warning message... but what exactly do you suggest I check for? Any and all HTML tags? And do you have any suggestions for what attribute values should be checked for this?
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

Postby roedygr » Sat Aug 09, 2008 3:29 pm

Albert Wiersch wrote:I'm not aware of any technical issue (with regards to the HTML specification) with using <br> in those attribute values. However, I can see that this may still be an issue that should be pointed out, maybe with a warning message... but what exactly do you suggest I check for? Any and all HTML tags? And do you have any suggestions for what attribute values should be checked for this?


I would like a warning if < > or raw & appeared inside vvv in anything of the form <ttt kkk="vvv" or <ttt kkk=ttt

I suppose too any non-ascii char should get the same warning as if it occured in plain text. I would treat these as separate less serious problem, just as you do in plain text.

While you are at it, you might offer a similar test for comments, though I don't think I would use the feature. I like to make comments readable not necessarily strictly Kosher.


The cleaner and more vanilla you can get your markup, the less likely some primitive screenscraping tool trying to parse it will trip.
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 249
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Postby Albert Wiersch » Mon Aug 11, 2008 1:47 pm

OK, thanks for the suggestion. I'll have to think about how to implement this one, but it will likely be for a version after 9.00.

CSE HTML Validator should already alert you to invalid character references (like a 'raw' &) in attribute values.
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

Postby Albert Wiersch » Mon Dec 15, 2008 5:13 pm

Hello,

In v9.02 BETA, it will now scan for tags in "summary" and "title" attributes and generate a warning like the below if something is found:
The value for the "summary" attribute appears to contain one or more tags (such as a "br" tag). Using tags here may cause problems and may not produce the desired effect.
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: No registered users and 2 guests