Potential XHTML problem with Konqueror from CVS

Thiago Macieira thiago.macieira at kdemail.net
Fri Aug 6 13:41:57 BST 2004


CP Hennessy wrote:
>Now in konqi when I have a bit of javascript to do :
>  node.tagName == "UL"
>to see if a node is UL or not it fails as the tagName returned is
> "ul".
>
>However if I change the DOCTYPE to remove the "XHTML" the test
> succeeds.

XHTML is XML, so tag names are case sensitive. What's more, it specifies 
that they are lowercase.

HTML itself is not XML and is not case sensitive. It also recommends 
converting to uppercase internally.

So, as far as I can see, Konqueror is behaving right.

-- 
  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/20040806/0ec8a47b/attachment.sig>


More information about the kfm-devel mailing list