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/
HTML: font color=”red” becomes green
31–40 of 99 posts
Re: HTML: font color=”red” becomes green
#32Re: HTML: font color=”red” becomes green
#33Earlier 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.
Re: HTML: font color=”red” becomes green
#34Earlier 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.
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
#35Wow. 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.
Re: HTML: font color=”red” becomes green
#36and
color="red"
Note the difference between ” and "
"red" is in fact red.
”abc” is still green!
Re: HTML: font color=”red” becomes green
#37Re: HTML: font color=”red” becomes green
#38Re: HTML: font color=”red” becomes green
#39Earlier 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"
Re: HTML: font color=”red” becomes green
#40Earlier 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