[Webkit-unassigned] [Bug 26415] New: External CSS with angular brackets in XSL breaks UIWebView in iPhone

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 15 14:44:33 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26415

           Summary: External CSS with angular brackets in XSL breaks
                    UIWebView in iPhone
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: aral at aralbalkan.com


Loading an XSL file into a UIWebView that has an external CSS file with angular
brackets in it (for the selectors) results in an invalid document (nothing
displays). 

To test, 

Simplified from my app:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <html>
  <head>
        <!--<link href="iui.css" rel="stylesheet" type="text/css"/>-->
        <!--
        <style media="screen" type="text/css">  
                <![CDATA[
                        @import url("iui.css"); 
                ]]>
        </style>
        -->
       <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet"
type="text/css" href="iui.css"/>
        <script type="application/x-javascript" src="iui.js"
charset="utf-8"></script>
  </head>
  <body>
     <h1>This doc won't render in UIWebView on iPhone</h1>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>

None of the methods of linking the stylesheet work (wrapping it in CDATA
doesn't help). To see the stylesheet in question, see:

http://code.google.com/p/iui/source/browse/trunk/iui/iui.css

If you go into iui.css and manually escape all angular brackets to >, the
document renders (but, of course, the CSS is messed up).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list