[Webkit-unassigned] [Bug 50708] New: Parse error during XSLT transformation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 8 13:05:44 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=50708
Summary: Parse error during XSLT transformation
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: XML
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jasminlapalme at me.com
Created an attachment (id=75951)
--> (https://bugs.webkit.org/attachment.cgi?id=75951&action=review)
Archive containing test case and patch
There is a bug in WebCore where Safari is unable to render an HTML web page created by an XSLT transformation from an XML file and an XSLT stylesheet.
To reproduce, open test.xml (in the zip archive in attachment) in Safari (Mac OS X 10.6 or Safari Mobile on iPad or iPhone). There will be a message like this :
---
This page contains the following errors:
error on line 1 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
This document was created as the result of an XSL transformation. The line and column numbers given are from the transformed result.
---
By examining the source code, I found that it is caused by faulty conversion from UTF-8 to UTF-16 in WebCore. The conversion convert chunks of UTF-8 data, but does not treat the case where the end of the chunk is in the middle of a multibyte UTF-8 character.
I am attaching a patch to fix this case (utf8_conversion.patch)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list