There is a (hopefully much improved) cleaner testcase and reduction of this bug at http://homepage.mac.com/sardisson/icab/lang_inheritance.html.

This document does not specify a lang="nn" attribute on the html element.

In English...

The p element on the following paragraphs does not contain a lang="nn" attribute.

We speak English, and this quote has a lang="en" attribute on the q element. -- observe the straight quotation marks

We speak English, and this quote has a lang="en" attribute on the q element, and our friends say hello, iCab users, there is no lang="en" attribute on the nested q element. -- observe the straight quotation marks on the main quote and the curly ones on the nested quote.

The p element on the following paragraphs does contain a lang="nn" attribute.

We speak English, and this quote has no lang="en" attribute on the q element. -- observe the curly quotation marks

We speak English, and this quote has a lang="en" attribute on the q element as well as on the parent p element. -- observe the curly quotation marks

We speak English, and this quote has no lang="en" attribute on the q element, and our friends say hello, iCab users, there is no lang="en" attribute on the nested q element. -- observe the curly quotation marks on the main quote and the nested quote.

We speak English, and this quote has a lang="en" attribute on the q element, and our friends say hello, iCab users, there is a lang="en" attribute on the nested q element. -- observe the curly quotation marks on the main quote and the nested quote.

Et aussi en français....

L'élément p sur les paragraphes suivants ne contient pas d'attribut lang="nn".

Nous ditons français, et cette citation a un attribut lang="fr" sur l'élément q. -- voici les guillemets americains droits

Nous ditons français, et cette citation a un attribut lang="fr" sur l'élément q, et nos amis disent boujour, utilisateurs d'iCab, il n'y a pas d'attribut lang="fr" sur l'élément niché q. -- voici les guillemets americains droits sur la citation principale et les guillemets normaux sur la citation nichée.

L'élément p sur les paragraphes suivants contient un attribut lang="nn".

Nous ditons français, et cette citation n'a pas attribut lang="fr" sur l'élément q. -- voici les guillemets normaux

Nous ditons français, et cette citation a un attribut lang="fr" sur l'élément q et aussi sur l'élément parental p -- voici les guillemets normaux

Nous ditons français, et cette citation n'a pas attribut lang="fr" sur l'élément q, et nos amis disent boujour, utilisateurs d'iCab, il n'y a pas d'attribut lang="fr" sur l'élément niché q. -- voici les guillemets normaux sur la citation principale et la citation nichée.

Nous ditons français, et cette citation a un attribut lang="fr" sur l'élément q, et nos amis disent boujour, utilisateurs d'iCab, il y a un attribut lang="fr" sur l'élément niché q. -- voici les guillemets normaux sur la citation principale et la citation nichée.

Mixed Languages

The p element on the following paragraph does not contain a lang="nn" attribute.

We speak English, and this quote has a lang="en" attribute on the q element, and our French friends say boujour, utilisateurs d'iCab, il y a un attribut lang="fr" sur l'élément niché q. -- Observe the straight quotation marks on the main quote and the curly (American) quotes on the nested (French) quote (incorrect).

Nous ditons français, et cette citation a un attribut lang="fr" sur l'élément q, et nos amis disent hello, iCab users, there is a lang="en" attribute on the nested q element. -- voici les guillemets americains droits sur la citation principale (incorrect) et les guillemets sur la citation nichée (incorrect).

The p element on the following paragraph does contain a lang="nn" attribute.

We speak English, and this quote has a lang="en" attribute on the q element, and our French friends say boujour, utilisateurs d'iCab, il y a un attribut lang="fr" sur l'élément niché q. -- Observe the culry quotes on the main quote (correct; English) and the curly (American) quotes on the nested (French) quote (incorrect).

Nous ditons français, et cette citation a un attribut lang="fr" sur l'élément q, et nos amis disent hello, iCab users, there is a lang="en" attribute on the nested q element. -- voici les guillemets normaux sur la citation principale (correct) et les guillemets sur la citation nichée (incorrect).

This latter section, I believe, proves that iCab only honors the lang="nn" attribute from the "parent" element, not the element itself.