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

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