What the hell is wrong with using single quotes for html attributes?
Because standards are useful only when they're... well... standard :-)
And doing print "<a href='$foo' style='foo:baz' onClick='stuff'>$xxx</a>" is infintely cleaner then doing print "<a href=\\"$foo\\" style=\\"foo:baz\\" onClick=\\"stuff\\">$xxx</a>"..
This is what qq is there for.
qq!<a href="$foo" style="foo:baz" onClick="stuff">$xxx</a>!
| [reply] [d/l] [select] |
What the hell is wrong with using single quotes for html attributes? come on people. Ok, it isn't *quite* valid XHTML/XML, (which i think is stupid..)
Well, at the risk of sounding like a stand-up comedian, there's three kinds of people in this world, those who can count, and those who can't .. rimshot
Thank you, thank you, I'll be here all week, be sure to tip your waitresses, try the veal .. rimshot
But seriously .. that kind of cavalier approach to standards is a kind of 'black and white' thing for me. Either you conform to the standard or you don't.
Me, I love it when the HTML Validator tells me a page that I've programmed comes out squeaky clean. But then, back in the 80's I was a C developer who wasn't happy until my code was properly indented, and also compiled and linted cleanly. That's just my style.
Your style sounds more like 'patch it up, close enough' to me. This is not a personal attack -- I don't know you, so it couldn't be -- it's just an observation that you and I appear to have differing standards in quality.
--t. alex
but my friends call me T.
| [reply] |
| [reply] |