DOMAttr.xml returns single-quoted attributes
-
Thatcher
- Tag set to attribute, qoute, serialization, xml
- State changed from new to open
- Assigned user set to Thatcher
so I had some debates about this with some xml folks. The result is I lost and quotes shouldn't matter.
However, I still think this is the defacto behaviour so I'm going to change it.
-
Thatcher
- State changed from open to invalid
decided not to change this as neither xml nor html require double quotes
-
sean (at msgilligan)
There is a very strong pragmatic argument for this feature. If you want to use env.js to do command line XML processing you want to be able to have the format of your output be as close as possible to the format of your input. Double-quotes should not change to single-quotes. It's a 'round-tripping' thing.
There is a general rule about being generous about what you accept and rigorous in what you output. I think this rule should apply to de facto standards as well.
I have a patch and am willing to resubmit based on current source.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.