CSS :lang pseudoclass doesn't work with XHTML 1.1 nor XHTML+RDFa 1.0

RESOLVED WORKSFORME

Status

()

--
major
RESOLVED WORKSFORME
8 years ago
8 years ago

People

(Reporter: saasha, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en; rv:1.9.2.10) Gecko/20080528 Epiphany/2.22 Firefox/3.0
Build Identifier: Mozilla/3.6.10

XHTML 1.1 and XHTML+RDFa 1.0 forbid the lang attribute on their elements. Instead, the xml:lang attribute is used.

CSS :lang pseudoclass seems to only recognize the lang attribute.

Reproducible: Always

Steps to Reproduce:
1. Create an XHTML 1.1 or XHTML+RDFa 1.0 file and put an xml:lang attribute on it and a link to a CSS file

2. Create a CSS file using the :lang pseudoclass

3. View the XHTML 1.1 or XHTML+RDFa 1.0 file
Actual Results:  
The xml:lang attribute is ignored.

Expected Results:  
The xml:lang attribute on elements in XHTML 1.1 and XHTML+RDFa 1.0 should be taken into account when rendering the CSS
Works fine for me.  Please reopen if you attach a file that shows the problem.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.