Live data from Hacker News

HTML: font color=”red” becomes green

jsfiddle.net

31–40 of 99 posts

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

#31

Wow. I haven't seen a tag in years. My thought processes loading this: • Ok, that is in fact green. • I wonder if this is related to the colour name parsing weirdness that was on HN a couple of weeks ago? • Heeeey, those aren't ASCII quotes!

Green - with ascii quotes and an invisible seperator. http://jsfiddle.net/WGSNX/264/

Maybe it's just late at night, but how does this work? I understand the words "invisible separator", but for lack of better phrasing, I don't see an invisible separator.

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

#33

Earlier quoted context omitted.

Green - with ascii quotes and an invisible seperator. http://jsfiddle.net/WGSNX/264/

Maybe it's just late at night, but how does this work? I understand the words "invisible separator", but for lack of better phrasing, I don't see an invisible separator.

Between the r and the e there is a U+2063 "invisible separator"

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

#34

Earlier quoted context omitted.

Green - with ascii quotes and an invisible seperator. http://jsfiddle.net/WGSNX/264/

Maybe it's just late at night, but how does this work? I understand the words "invisible separator", but for lack of better phrasing, I don't see an invisible separator.

Between the R and E of red there's some extra character.

My font shows it as a missing character box.

I'm guessing that it just breaks the 'red' into a value which is interpreted as whatever the hex is. (See the chuck norris links posted in this thread).

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

#35
post #22

Wow. I haven't seen a tag in years. My thought processes loading this: • Ok, that is in fact green. • I wonder if this is related to the colour name parsing weirdness that was on HN a couple of weeks ago? • Heeeey, those aren't ASCII quotes!

Maybe something is wrong with me, but the first thing I noticed was the quotes. In fact, from the title posted on HN.

Same here.

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

#39
post #33

Earlier quoted context omitted.

Maybe it's just late at night, but how does this work? I understand the words "invisible separator", but for lack of better phrasing, I don't see an invisible separator.

Between the r and the e there is a U+2063 "invisible separator"

Ahh, thanks, that's the actual name of the character! 3am and I've already learned something new for the day.

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

#40
post #30
post #23

Earlier quoted context omitted.

This neatly explains why `red` also becomes green.

#FF0000 also became green (with these quotes)

  = ”#FF0000”
  = 0#FF00000 (rule 10)
  = 00FF00000 (rule 10)
  = 00F F00 000 (rule 12)
  = 00 F0 00 (rule 15)
  = #00F000 (rule 16)
edit: fixed, was previously erroneously applying rule 14 which gave a result of #0FF000
Post reply on HN