Bug 6040

Summary: XSLT does not report errors to the user
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: XMLAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, ian
Priority: P4    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 15751    
Attachments:
Description Flags
proposed fix darin: review+

Description Eric Seidel (no email) 2005-12-11 02:50:52 PST
XSLT does not report errors to the user

See parseErrorFunc in XSLTProcessorImpl.*

I just added two testcases to catch this:

fast/xsl/xslt-mismatched-tags-in-xslt.xml  (currently produces blank output)
fast/xsl/xslt-missing-namespace-in-xslt.xml (currently parses result as html when it shouldn't)
Comment 1 Alexey Proskuryakov 2007-10-29 09:33:09 PDT
Created attachment 16936 [details]
proposed fix
Comment 2 Darin Adler 2007-10-29 09:53:33 PDT
Comment on attachment 16936 [details]
proposed fix

r=me
Comment 3 Alexey Proskuryakov 2007-10-29 10:14:07 PDT
Committed revision 27227.

Comment 4 Alexey Proskuryakov 2007-10-29 10:17:51 PDT
NB: this patch sends errors to Web Inspector console.
Comment 5 Eric Seidel (no email) 2007-10-29 10:37:08 PDT
This fix (wonderful as it is!) does not actually solve the issue this bug was originally about... so I've filed bug 15751.  The fact that this change doesn't affect any tests concerns me.  I really think we should add a test case to demonstrate XSLTProcessor writing to the console.