Case-insensitive matching and URL production for reserved words

Ian brought this up[1] in WHATWG yesterday...

If you have markup that looks like this:

   <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <link rel="stylesheet" href="...">
     <link rel="STYLESHEET" href="...">

Would the first rel create a triple with this predicate?

<http://www.w3.org/1999/xhtml/vocab#stylesheet>

and the second create a triple with this predicate?

<http://www.w3.org/1999/xhtml/vocab#STYLESHEET>

I couldn't find anything in the spec or the test harness that tests this
and my parser certainly creates the two case-sensitive triples. The
HTML4 spec, and I believe the XHTML1.1 spec, states that these
relationships should be case-insensitive:

http://www.w3.org/TR/html4/types.html#type-links

So, two questions:

Should we be doing case-insensitive matching for the @rel/@rev reserved
attribute values for @rel/@rev in XHTML1.1+RDFa?

Should we be generating lower-cased output for predicates generated via
a @rel/@rev reserved attribute value match? (ie: Should we replace
'STYLESHEET' with 'stylesheet' when generating the predicate).

-- manu

[1]http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-May/019635.html

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: A Collaborative Distribution Model for Music
http://blog.digitalbazaar.com/2009/04/04/collaborative-music-model/

Received on Friday, 8 May 2009 12:34:16 UTC