HTML: font color=”red” becomes green
jsfiddle.net
HTML: font color=”red” becomes green
1–10 of 99 posts
Re: HTML: font color=”red” becomes green
#2Re: HTML: font color=”red” becomes green
#3Cute. Use normal quotes ;) HTML colour parsing for invalidly specified colours is odd to say the least.
Re: HTML: font color=”red” becomes green
#4Cute. Use normal quotes ;) HTML colour parsing for invalidly specified colours is odd to say the least.
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
#5Cute. 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 :)
Re: HTML: font color=”red” becomes green
#6 = ”red”
= 0red0 (" is not ascii so make 0)
= 00ed0 (r is not hex so make 0)
= 00ed00 (pad)Re: HTML: font color=”red” becomes green
#7Re: HTML: font color=”red” becomes green
#8[1] https://news.ycombinator.com/item?id=6662342
[2] https://stackoverflow.com/questions/8318911/why-does-html-th...
Re: HTML: font color=”red” becomes green
#9• 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!
Re: HTML: font color=”red” becomes green
#10red => #red => #0ed => #ed => #ed0 => #eedd00
Could be this?
EDIT: That was wrong:
red => #red => #0ed => #00ed00 seems the correct one.