Bug 35140 - Wrong string return for DOM XSLTProcessor and XMLDocument toString() call
Summary: Wrong string return for DOM XSLTProcessor and XMLDocument toString() call
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Trivial
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 00:52 PST by Marc Bonnier
Modified: 2010-08-09 03:51 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Bonnier 2010-02-19 00:52:33 PST
I know this does not break anything but just for the sake of consistency ...

1) The window.XSLTProcessor.toString() call returns:
     "[object XSLTProcessorConsructor]" instead of:
     "[object XSLTProcessorConstructor]" (little typo :).

2) The window.XMLDocument.toString() call returns:
     "[object DocumentConstructor]" instead of:
     "[object XMLDocumentConstructor]" (all the others consistent with the window property name).

Thanks.
Comment 1 Alexey Proskuryakov 2010-02-19 17:01:41 PST
(2) happens because XMLDocument is just an alias for Document we have for compatibility. There is no such thing as XMLDocument in HTML5 or WebKit. So, this is expected behavior.

(1) is something to be fixed, of course.
Comment 2 Alexey Proskuryakov 2010-08-09 03:51:48 PDT
(1) has been fixed in <http://trac.webkit.org/changeset/61136>.