- Deathcon 5
- |
- Exalted Mythic Member
Flours2012
Deathcon_5 on Adelais
Posted by: ctjl96
Posted by: Deathcon 5
Same number of characters sent: " vs '
Pages are sent as plaintext. Those are HTML entities, or "HTML-safe" strings used to prevent security problems like XSS. If you tried to write an attrib like that, it wouldn't load.
OT: Lol, I can't see this making more of a few ms difference. I've always thought it was standard practice to use double quotes for HTML attributes -- in fact, I go out of my way to do it. I write my js with single quotes and my HTML with double.
Actually, wait a second. Is <p style="color:red"> really different at all from <p style='color:red'>? From what I can tell, this change wouldn't make a difference at all.
" isn't sent, the code for " is sent. And in binary its the same length as the code for '
1 byte, the same for all UTF-8 ASCII chars.
[Edited on 05.02.2012 1:18 AM PDT]