--- SINGLE QUOTES -------- --- FIGHT THE MACHINE -- On Nov 30, 2007 9:53 AM, Tom Stuart <[EMAIL PROTECTED]> wrote:
> > On 29 Nov 2007, at 23:02, Hampton wrote: > > I was unaware that XML requires a double quote. > > So was I, but I've read the XML specification, so it's not for lack of > interest. Where are double quotes required? What issue are you > responding to here? The spec's section on attribute literal syntax ( > http://www.w3.org/TR/REC-xml/#IDANUDS > ) explicitly says that they can be single- or double-quoted (and > therefore can't contain literal double- and single-quote characters > respectively) which is the way I've always understood it, but perhaps > I'm missing something obvious. > > That being said, it's my personal preference to use double-quotes in > XML wherever possible -- perhaps just because they're less likely to > appear in attribute values, so fewer entity references are required -- > and for that reason (+ laziness) I'd be pleased to see Haml's default > changed to double-quotes. I think it's just the less surprising > option, particularly since I'm sure there are plenty of newbies who > don't realise apostrophes are allowed at all. > > Cheers, > -Tom > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
