MapML icon indicating copy to clipboard operation
MapML copied to clipboard

Lowercase projection identifiers?

Open Malvoz opened this issue 5 years ago • 2 comments

In the spec, and in example usage elsewhere the projection attribute uses uppercase identifiers such as projection="OSMTILE", while I understand the convention may be to spell it out that way, I think when it comes to HTML we should keep it lowercase. You rarely come across crossorigin="ANONYMOUS" or type="VIDEO/MP4" for example, in the wild.

Malvoz avatar Feb 23 '20 16:02 Malvoz

Yes. I can't remember why I made them uppercase, specifically. HTML is case-insensitive, but I couldn't find anything about attrubute values' cases sensitivity or not. I think I was trying to establish that the set of values is strictly limited and the meanings of those values is strictly defined by the spec.

That said, I would prefer case-insensitive values. I'm sure my code will break somewhere currently, if fed a mixed or lower case value.

prushforth avatar Feb 23 '20 16:02 prushforth

I just came across a note in MDN that says that DOMTokenLists are always case-sensitive. So this would affect how the projection attribute should be specified, I imagine, because it would be a DOMTokenList of size=== 1 ?

prushforth avatar Feb 27 '20 22:02 prushforth