[PATCH] New attempt at CSS3-function arguments

Thiago Macieira thiago.macieira at kdemail.net
Wed Apr 14 05:09:48 BST 2004


Dirk Mueller wrote:
>On Sunday 11 April 2004 21:41, Thiago Macieira wrote:
>> I'm attaching again a new patch to handle CSS2 and 3 function
>> arguments for pseudoclasses.
>
>I don't think your patch is correct.

The second one is broken; the first one works quite fine.

Further investigation after I had already sent two patches showed my 
changes to the tokenizer broke the the detection of numbers 
(floating-point). I reverted the change to 'num' in tokenizer.flex and, 
though flex complains 'integer' will never be matched, things work 
again.

The odd thing is that I copied that from CSS3's specification. Of 
course, it could also be the fact that I had a grand-total of 1h worth 
of experience with flex...

>what kind of attribute is 
> "xml:lang" supposed to be?
>
>Where did you find that? This looks like a prefixed attribute to me.

XHTML 1.0 and 1.1.

From the XHTML 1.1 specification 
(http://www.w3.org/TR/xhtml11/changes.html#a_changes):
"1. On every element, the lang attribute has been removed in favor of 
the xml:lang attribute (as defined in [XHTMLMOD])."

From the XHTML 1.0 specification, section "C.7. The lang and xml:lang 
Attributes" (http://www.w3.org/TR/xhtml1/#C_7):
"Use both the lang and xml:lang attributes when specifying the language 
of an element. The value of the xml:lang attribute takes precedence."

Yes, it looks like it's a prefixed element. But it's the only element 
that is so.

The problem is that XHTML 1.1 removed "lang", so in order to write XHTML 
1.1-compliant pages, I had to use "xml:lang". And, of course, since my 
point was supporting the :lang() pseudo-class selector in the pages I'm 
writing, I had to add that attribute as well -- though changing the 
DOM::HTMLElement was probably not a good idea as it breaks compliance 
with DOM HTML specs.
(it's been only 4h that I found out those specs)

By the way, Quanta supports it in the Attribute Editor.
-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiago (AT) macieira (DOT) info
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20040414/cd64aefc/attachment.sig>


More information about the kfm-devel mailing list