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+

Eric Seidel (no email)
Reported 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)
Attachments
proposed fix (21.11 KB, patch)
2007-10-29 09:33 PDT, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2007-10-29 09:33:09 PDT
Created attachment 16936 [details] proposed fix
Darin Adler
Comment 2 2007-10-29 09:53:33 PDT
Comment on attachment 16936 [details] proposed fix r=me
Alexey Proskuryakov
Comment 3 2007-10-29 10:14:07 PDT
Committed revision 27227.
Alexey Proskuryakov
Comment 4 2007-10-29 10:17:51 PDT
NB: this patch sends errors to Web Inspector console.
Eric Seidel (no email)
Comment 5 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.
Note You need to log in before you can comment on or make changes to this bug.