LJ have just tweaked their HTML/CSS cleaner, according to the support page. In the process, they drove cart and horses through my carefully hand-crafted S1 style here. It may take come time to sort it out. If anyone can point me at a list of what exactly this new beastie is twitchy about, it could make my life a lot easier; otherwise I'm going to have to reverse-engineer things to work out what is and isn't allowed.
While they have some legitimate concerns* I think they're currently stripping stuff that's pretty harmless. For example, how the hell can
Well, at least it proves that my "graceful degradation" works as intended...
*there are some downright terrifying browser-specific features out there, from the perspective of defending against cross-site scripting attacks.
[edit: there was a post on the subject on
lj_maintenance shortly after a wrote this. I think I'll wait a day or two for things to settle down before I attempt to clean up. I mean, it's not like many people read this journal in the native style, rather than via their own LJ-friends view or some other aggregator]
While they have some legitimate concerns* I think they're currently stripping stuff that's pretty harmless. For example, how the hell can
<style type="text/css"> be malicious?Well, at least it proves that my "graceful degradation" works as intended...
*there are some downright terrifying browser-specific features out there, from the perspective of defending against cross-site scripting attacks.
[edit: there was a post on the subject on
no subject
Date: 2006-02-08 09:23 (UTC)no subject
Date: 2006-02-08 09:43 (UTC)no subject
Date: 2006-02-08 09:51 (UTC)no subject
Date: 2006-02-08 11:22 (UTC)FWIW, it doesn't seem to be objecting to <style type="text/css">, it just "cleans" what's inside them. Where you may be going wrong is using an @import (which is, apparently, suspect) instead of <link rel="stylesheet" href="[address]" type="text/css">...
no subject
Date: 2006-02-08 12:15 (UTC)I don't think there's a documented list of what's allowed/not currently but if you look in the source you should find that it tries to leave you useful comments as to what it's taking out (so, for example, yours currently has a /* suspect CSS: import rule */ in it)
no subject
Date: 2006-02-08 12:16 (UTC)no subject
Date: 2006-02-08 12:32 (UTC)My main criteria for viewing style is that it should display user icons on my individual posts, and collapse down to view on a PDA reasonably well (ie as little side-scrolling as possible). I've not viewed my current ("Magazine") on PDA yet but it looks like it should be reasonable...
no subject
Date: 2006-02-08 14:32 (UTC)What the PDA you couldn't justify paying for but only occasionally use on the semi-permanent loan? :-P
no subject
Date: 2006-02-08 14:37 (UTC)And no, I couldn't justify it, what with having no money and no income at the time. I sort of thought you'd prefer rent that month...
no subject
Date: 2006-02-08 17:15 (UTC)*Yes, you just became a Potential Usability Tester!
no subject
Date: 2006-02-08 17:15 (UTC)However, my first attempt to fix things involved simply inlining the style sheet inside style tags, at which point it stripped out the
type="text/css"attribute, which I reckon is a tad harsh. Ok, if it wastype="application/exe"or similar, they'd have a point, but text/css? Ouch. I think something else was getting trimmed, too, but I didn't have time to poke, so I just put it back to "ugly but functional" until I've got time to investigate properly. (Which may be a day or several)I was using
@importas a crude filter to hide the style from browsers that would make a complete dogs' breakfast of it (NN4 and the like). Oh well, no one (that I care about*) uses those anymore, so I'll give the link approach a go and see if it can cope with remote stylesheets that way. Failing that, I'll have to go back to inline and see if the fix to over-zealous trimming thatI can probably figure things out, given an hour or two, but it's a PITA (especially without documentation). Ho hum.
(Also, having done tech support myself, I appreciate that you're one of the poor saps stepping in (voluntarily!) to try to help after someone else did this, and your assistance is appreciated)
*If you're still using NN4, I don't care what it looks like. Just about every platform going has a better browser available, with a veritable menagerie on the more popular platforms.
no subject
Date: 2006-02-08 17:19 (UTC)no subject
Date: 2006-02-08 17:21 (UTC)no subject
Date: 2006-02-08 17:34 (UTC)<gratuitous browser pimpage>
I hear lots of good things about Opera's PDA browsers, though I've never had a chance to try it myself.
</gratuitous browser pimpage>
no subject
Date: 2006-02-08 18:29 (UTC)no subject
Date: 2006-02-22 13:29 (UTC)Anyway. Forgot to reply to this for ages but just wanted to say thanks for the acknowledgement - we had so many people spitting blood over it that it's really nice for someone to just say "oh bother, how awkward but I can see why you're doing it" Yay for reasonable people :)
no subject
Date: 2006-02-22 19:38 (UTC)Like I said, I've done tech support, so I have some idea what it's like to be the poor soul jumping into the breach to handle front-line support after someone shafted the world - you can do without users yelling at you (though I'm sure you had a plentiful supply).
I'm also moderately in touch with browser development/security, and develop web applications professionally, so I'm aware of the need, sometimes, to just plug the hole FAST and deal with the fallout later...
While I'm not up to speed on the precise ins and outs, I know enough of the background to be sure that the LJ developers weren't jumping at shadows - if remote stylesheets can attach javascript, all hell breaks loose when users have the level of control they do here.