Bug 5378 - createDocument fails with DOM Exception 5 when passed empty qname
Summary: createDocument fails with DOM Exception 5 when passed empty qname
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Anders Carlsson
URL: http://www.zeugma.ch/blog/xslttest.html
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-13 17:42 PDT by Eric Seidel (no email)
Modified: 2019-02-06 09:02 PST (History)
1 user (show)

See Also:


Attachments
Fix (12.56 KB, patch)
2006-01-03 01:46 PST, Anders Carlsson
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2005-10-13 17:42:06 PDT
createDocument fails with DOM Exception 5 when passed empty qname

I'm not sure if this is correct or not.  FireFox does not fail here, but the spec seems to imply that we 
should.
Comment 1 Eric Seidel (no email) 2005-10-13 17:42:29 PDT
I discovered this when trying to use:
http://www.zeugma.ch/blog/xslttest.html
Comment 2 Eric Seidel (no email) 2005-10-13 17:45:12 PDT
using sarissa : http://sarissa.sourceforge.net/doc/
Comment 3 Eric Seidel (no email) 2005-10-13 17:46:50 PDT
The spec:
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490
Comment 4 Sam Weinig 2005-12-12 08:03:59 PST
For a good conversation about this with the KDE developers' conclusions see http://bugs.kde.org/
show_bug.cgi?id=61650
Comment 5 Anders Carlsson 2006-01-03 01:46:56 PST
Created attachment 5442 [details]
Fix

The attached patch fixes this bug. Note that it makes two of the W3C tests
fail, but these fail in at least Firefox and Opera (I suspect WinIE too).
Comment 6 Maks Orlovich 2006-01-03 08:42:03 PST
See my bug report #5735 (I guess you may want to close this now) ---  note 
that by DOM Level 3, you're supposed to not create the document node -ONLY- 
when all of documentType, NameSpaceURI and qualifiedName are null 
Comment 7 Lucas Forschler 2019-02-06 09:02:39 PST
Mass moving XML DOM bugs to the "DOM" Component.