Live data from Hacker News

HTML: font color=”red” becomes green

jsfiddle.net

1–10 of 99 posts

Re: HTML: font color=”red” becomes green

#4
post #2

Cute. Use normal quotes ;) HTML colour parsing for invalidly specified colours is odd to say the least.

Hard to spot. I can imagine this happening in the real world.

Several blogs engines seem to like automatically converting normal quotes to curly quotes in an attempt to prettify their text rendering. I remember copy and pasting code snippets in the and having to fix this.

Re: HTML: font color=”red” becomes green

#5
post #3
post #2

Cute. Use normal quotes ;) HTML colour parsing for invalidly specified colours is odd to say the least.

Someone sent a friend of mine this code: ”Why is this not working?!” It was puzzling for a few minutes :)

With that font, it's obvious straight away; wouldn't want to debug this for sure.

Re: HTML: font color=”red” becomes green

#10
I don't know why is considering that as a RGB notation instead of the color red, but following this progression seems correct: http://jsfiddle.net/7ACky/2/

red => #red => #0ed => #ed => #ed0 => #eedd00

Could be this?

EDIT: That was wrong:

red => #red => #0ed => #00ed00 seems the correct one.

Post reply on HN