Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Filtering potentially dangerous URI schemas in

by moxliukas (Curate)
on Oct 20, 2002 at 23:11 UTC ( #206729=note: print w/replies, xml ) Need Help??


in reply to Re: Filtering potentially dangerous URI schemas in <a href="...">
in thread Filtering potentially dangerous URI schemas in <a href="...">

Link coloring may be an option, but you have to keep in mind that people are using different CSS themes, so this probably should be implemented as a CSS class rather than blunt <font color="#ff0000">.
  • Comment on Re: Re: Filtering potentially dangerous URI schemas in <a href="...">
  • Download Code

Replies are listed 'Best First'.
Re^3: Filtering potentially dangerous URI schemas in
by Aristotle (Chancellor) on Oct 20, 2002 at 23:18 UTC
    Actually, that was on purpose. That way, neither themes nor CSS will lead to the colour accidentally being overridden. I was aiming for a representation that would be completely and entirely unmistakable under any circumstances.

    Makeshifts last the longest.

      That way, neither themes nor CSS will lead to the colour accidentally being overridden.

      this is not true. this example style should disprove your case:

      /* color links */ a, a font { color: #457; background: #eee; text-decoration: none; } a:hover { color: #eee; background: #457; } /* override <font>...</font> tags */ font, b, strong { color: #457; background: transparent; }
      there are multiple ways to override the font tags in your example. my browser does not display your text in red, as you specified, as all font tags are overridden by a user-supplied style.

      as to

      a representation that would be completely and entirely unmistakable under any circumstances
      ... you'll have to aim a little higher ;-)

      ~Particle *accelerates*

        Then how about <font color="#ff0000" style="color: red"> ? But I can't demonstrate that since last I checked, style attributes got stripped from user text.

        Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://206729]
help
Chatterbox?
[erix]: ITYM Schwartzian Transform :P
[erix]: hey planetscape :)
[planetscape]: howdy stonecolddevin, erix
[Sinistral]: eric Aye. I thought I typed that wrong. All hail Randall! I listen to him on FLOSS Weekly
[Discipulus]: i think his vacuus, trombon like, absence of meaning, joined with a ostentatious style, after many years irritates the most
[erix]: easy to get wrong -- I guess that was sund's point, too :P
[Discipulus]: planetscape welcome back! (or is well comeback?)
[Discipulus]: fore every 2 good old monks that come back, we will accept 1 clinical
[planetscape]: Might be "well, come back!" Discipulus ;-)
[stonecolddevin]: that's a 2.0 k/d ratio, i'll take it

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-06-22 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (530 votes). Check out past polls.