Potential XHTML problem with Konqueror from CVS

CPH cphennessy at openoffice.org
Sat Aug 7 12:34:49 BST 2004


On Friday 06 August 2004 13:41, Thiago Macieira wrote:
> 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.
But Konqi returns names in lowercase!
Also looking at http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-822762427
I see:
"If the document is an HTML 4.01 document the element type names exposed 
through a property are in uppercase."

So this is definitely a bug in Konqueror.

Actually this has been reported before by others and it seems that there is a 
Safari patch for this:
http://bugs.kde.org/show_bug.cgi?id=57916

-- 
CPH : openoffice.org contributor

Maybe your question has been answered already?
				http://user-faq.openoffice.org/#FAQ




More information about the kfm-devel mailing list