- From: Shane McCarron <shane@aptest.com>
- Date: Mon, 01 Nov 2010 11:32:36 -0500
- 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