Patch for namespace handling

David Faure faure at kde.org
Fri Oct 24 03:33:38 CEST 2003


The attached patch fixes all known issues with namespace handling for _elements_.
(I'll work on attributes tomorrow).

That is, it fixes all createElement and createElementNS testcases (that Peter Kelly
wrote in khtmltests/regression/tests/dom/namespaces.html (in CVS), including
many case issues in nodeName/localName/tagName, but also namespace ids
being used at all etc.

This patch is based on KDE_3_1_BRANCH, i.e. it proves that this can be done
with the "ID" scheme (namespace in 16 bits, localname in 16 bits) that kde-3.1.x used
and that safari uses too.

CVS HEAD has different code (as compliant but much slower), so the goal is 
that once the ID scheme is fully working in the branch (incl. attributes), 
we'll "forward port" that code to CVS HEAD again.

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namespaces.diff
Type: text/x-diff
Size: 20282 bytes
Desc: not available
Url : http://mail.kde.org/mailman/private/khtml-devel/attachments/20031024/a8bedbcb/namespaces.bin


More information about the Khtml-devel mailing list