Live preview ignores tag order incorrectly. October 2, 2005 5:59 AM Subscribe
Live preview ignores tag order incorrectly. [more inside]
Aha, I remember a couple of the others... <big> still works in live preview, and <pre> behaves differently in live preview from comments - referenced in the meta discussion on code tags.
posted by Chuckles at 6:11 AM on October 2, 2005
posted by Chuckles at 6:11 AM on October 2, 2005
The live preview doesn't do any extensive text filtering that the comment submission code does. In order to make them exactly the same, I'd have to convert server-side coldfusion code to client-side javascript, evaluating on every keystroke to look for disallowed code.
That seems almost completely impossible and as the preview is, it's a "what you see is mostly, about 99%, of what you get" which works well for just about everyone and the few times there's a difference it's still pretty much an edgecase.
I may add a tiny link next to the words "Live Preview (more info) tha twould explain any discrepency or at least warn about it.
posted by mathowie (staff) at 11:21 AM on October 2, 2005
That seems almost completely impossible and as the preview is, it's a "what you see is mostly, about 99%, of what you get" which works well for just about everyone and the few times there's a difference it's still pretty much an edgecase.
I may add a tiny link next to the words "Live Preview (more info) tha twould explain any discrepency or at least warn about it.
posted by mathowie (staff) at 11:21 AM on October 2, 2005
Almost completely impossible? That sounds like a challenge! If you post the code here or e-mail it to me, I'll do the conversion. :-)
posted by Khalad at 1:28 PM on October 3, 2005
posted by Khalad at 1:28 PM on October 3, 2005
It's not all that impossible: the banned tags are in a ColdFusion file somewhere (Application.cfm if you were going to use them across files), so if you populate a JS array from there and then strip them as part of the live preview, you're all set.
posted by yerfatma at 7:09 PM on October 3, 2005
posted by yerfatma at 7:09 PM on October 3, 2005
You are not logged in, either login or create an account to post comments
I included the closing tags in the same order, but the order should be reversed. My error didn't show up in live preview, which kind of defeats the purpose...
I think I have noticed some other quirks in the behavior of live preview, but I can't remember them. Perhaps others can help by adding to the list of live preview bugs.
posted by Chuckles at 6:00 AM on October 2, 2005