W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > November 2010

Re: Review of XHTML+RDFa 1.1 (http://www.w3.org/TR/2010/WD-xhtml-rdfa-20100803/) (Tom)

From: Shane McCarron <shane@aptest.com>
Date: Mon, 01 Nov 2010 11:32:36 -0500
Message-ID: <4CCEEBA4.4080403@aptest.com>
To: Toby Inkster <tai@g5n.co.uk>
CC: Thomas Steiner <tomac@google.com>, public-rdfa-wg@w3.org, Mark Birbeck <mark.birbeck@x-port.net>


On 11/1/2010 11:28 AM, Toby Inkster wrote:
>
> This is just checking the tag name of the current element, so it
> doesn't matter which.
>
> You could do:
>
> 	if ($current_element.tagName == 'head'
> 	||  $current_element.tagName == 'body')
>
> or:
>
> 	if ($current_element.tagName == 'body'
> 	||  $current_element.tagName == 'head')
>
> or even use a regular expression:
>
> 	if ($current_element.tagName.matches(/^head|body$/))
>
> Doesn't matter. (Well, you probably want to do a namespace-aware check,
> but that complicates the examples.)

I agree... I don't actually know why this is in here at all though.  The 
rule seems stupid to me... It always did.  The element in question 
should be 'html' shouldn't it?

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com
Received on Monday, 1 November 2010 16:33:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:50 UTC