On Friday 20 February 2004 02:43, Anderson, Scott wrote:
> Someone else posted this on the list earlier. It catches the use of
> tiny fonts and it got triggered on the mail you posted.
>
> describe LOC_TINY_FONT_1 Body contains 1pt font
> rawbody LOC_TINY_FONT_1 /\<.*font\-size\:[
> \"]*1[^0-9]+.*\>/i score LOC_TINY_FONT_1 10
>
> rawbody LOC_TINY_FONT_0 /\<.*font\-size\:[
> \"]*0[^0-9]+.*\>/i describe LOC_TINY_FONT_0 Body contains 0pt
> font
> score LOC_TINY_FONT_0 10
These will also catch:
<some other tag> let's discuss font-size: 0px in this thread <second tag>
How about:
describe LOC_TINY_FONT_1 Body contains 1pt font
rawbody LOC_TINY_FONT_1 /[\<\{][^\>\}]*font\-size\:[
\"\']*[01][^0-9\{\<]*[\>\}]/i
score LOC_TINY_FONT_1 1.0
Should work for HTML and CSS tags.
--
Berend De Schouwer