Bug 19206
| Summary: | <?xml-stylesheet is totally broken in Safari | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Laurens Holst <laurens.nospam> |
| Component: | XML | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 525.x (Safari 3.1) | ||
| Hardware: | PC | ||
| OS: | OS X 10.5 | ||
| URL: | http://www.grauw.nl/ | ||
Laurens Holst
Hi,
Using <?xml-stylesheet in an XHTML document used to work in Safari. However, at some point during the 3 line, this stopped working, particularly the alternate="yes" and media="print" ‘attributes’ on the processing instruction seem to be ignored, and all styles are applied at once.
You can see this having a devastating effect on my website, which has been the case for some time now, making it effectively inaccessible for Safari users.
~Grauw
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I see the problem with shipping Safari 3.1.1, but the site works OK with a nightly build. This was fixed in bug 17129 and bug 11939.
It does not look like media and alternate ever worked in shipping Safari/WebKit.
Laurens Holst
Great to hear.
I remember testing on my grandfather’s Mac. Maybe it wasn’t served as application/xhtml+xml back then? It does this based on the Accept header, and when served as text/html it has the stylesheets as links inside the head element.
~Grauw
Alexey Proskuryakov
Yes, this explains it coompletely - we did change our Accept header to include application/xhtml+xml in Safari 3, see bug 9572.
Laurens Holst
Are you sure this is fixed? My website still looks broken in Safari 3.1.2 and Google Chrome...
Alexey Proskuryakov
Please try a nightly build from <http://nightly.webkit.org> - the fix is not yet released with Safari. I don't know for sure why this site doesn't work with Chrome - it's based on a rather dated version of WebKit, so it's possible that it doesn't include these fixes either.
Laurens Holst
Okay, thank you, just making sure :). I hope they will update their codebases soon!