Bug 22439 - Won't load stylesheets with filenames less than 2 characters long in xhtml.
Summary: Won't load stylesheets with filenames less than 2 characters long in xhtml.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 11:32 PST by sliahawr
Modified: 2008-11-24 06:41 PST (History)
0 users

See Also:


Attachments
Test case that demonstrates the bug. (588 bytes, application/bzip2)
2008-11-23 11:41 PST, sliahawr
no flags Details
proposed fix (6.69 KB, patch)
2008-11-24 03:18 PST, Alexey Proskuryakov
mrowe: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sliahawr 2008-11-23 11:32:16 PST
When linking to a css stylesheet in an xhtml document using this code:

<?xml-stylesheet href="a" type="text/css"?>

-it does not load the stylesheet.

However when using this code:

<?xml-stylesheet href="aa" type="text/css"?>

It loads the stylesheet successfully.
Comment 1 sliahawr 2008-11-23 11:41:19 PST
Created attachment 25400 [details]
Test case that demonstrates the bug.

I have included a .htaccess apache configuration file which I used to ensure the correct mime-type and charset were sent with the css files.
Comment 2 Alexey Proskuryakov 2008-11-24 03:18:16 PST
Created attachment 25423 [details]
proposed fix
Comment 3 Mark Rowe (bdash) 2008-11-24 04:56:15 PST
Comment on attachment 25423 [details]
proposed fix

r=me
Comment 4 Alexey Proskuryakov 2008-11-24 06:41:34 PST
Fixed in <http://trac.webkit.org/changeset/38708>.