Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-39) was last changed on 10-Sep-2006 20:45 by JanneJalkanen  

This page was created on 26-Aug-2005 12:51 by GregorHagedorn

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 82 changed one line
** sub, sup, u, em, strong, code, strike, q
** sub, sup, u, em, strong, code, samp, kbd, q, ins, del
At line 90 changed one line
The 2.3 renderer already has a "span stack". So it would not be such a difficult addition. Another possibility - since we now have the new renderer - would be simply to enable HTML for some particulars like <sub> and <sup>. BTW, both <u> and <strike> are deprecated in XHTML 1.0, so they're unlikely to make an appearance.
The 2.3 renderer already has a "span stack". So it would not be such a difficult addition. Another possibility - since we now have the new renderer - would be simply to enable HTML for some particulars like <sub> and <sup>. BTW, <u> is deprecated in XHTML 1.0 (i.e. not supported in xhtml strict, GH), so unlikely to make an appearance.
At line 102 changed one line
BTW: Perhaps the () for percent-CSS direct styling is unnecessary. Instead of {{{%%(color:red;) text%%}}} JSPWiki could simply support {{{%%color:red; text%%}}} or {{{%%color:red text%%}}}. That is part of the {{{%%}}} syntax is that the first blank ends the markup info, and that a colon indicates direct styling.
;:Janne: ''Doesn't work. Problem with enabling HTML is that it allows for all sorts of XSS attacks. And enabling HTML ''anywhere'' is a problem.''
At line 104 changed one line
BTW2: In regard to deprecation, strictly they are not deprecated in xhtml 1.0. In xhtml 2 all pre presentational elements <i>, <b> and <tt> will be absent - except <sup> and <sub> (sic!). It may be desirable to switch the engine already to use strong and em instead of b and i.
;:Gregor: Misunderstanding here, JSPWiki already has the option to allow html. I only propose to separate the issues into allowing html, and where allowing it (and which default). Next step would be to validate xhmtl according to a (self-written/modified) restricted schema avoiding the security concerns you mention. See [http://pixel-apes.com/safehtml] used e.g., by Wikka Wakka Wiki.
At line 106 added 7 lines
BTW: Perhaps the () for percent-CSS direct styling is unnecessary. Instead of {{{%%(color:red;) text%%}}} JSPWiki could simply support {{{%%color:red; text%%}}} or {{{%%color:red text%%}}}. That is part of the {{{%%}}} syntax is that the first blank ends the markup info, and that a colon indicates direct styling. Second thoughts: some combined CSS commands (font:, margin: require blanks. Although single command alternatives exist for all these, the above may not be such a good idea. A variant might be: if colon exists, CSS styling commands until first semicolon-blank combination...
;:''No. We won't change existing markup, unless absolutely necessary.''
BTW2: In regard to deprecation, in xhtml 2 all presentational elements including <i>, <b> and <tt> will be absent - except <sup> and <sub> (sic!). It may be desirable to switch the engine already to use logical markup likee strong and em instead of b and i.
At line 114 added 5 lines
----
__Addendum:__ The idea to use the style/double-percent syntax unfortunately does not work with JSPWiki 2.2.28-33, see [BugStyleDoublePercentProblem] -- GH.
Version Date Modified Size Author Changes ... Change note
39 10-Sep-2006 20:45 8.855 kB JanneJalkanen to previous
38 10-Sep-2006 20:01 9.988 kB Britney to previous | to last
37 13-Aug-2006 09:24 8.853 kB Janne Jalkanen to previous | to last
36 13-Aug-2006 05:33 8.971 kB ferz ulpysx to previous | to last
35 21-May-2006 18:51 8.853 kB Janne Jalkanen to previous | to last
34 19-May-2006 19:51 9.674 kB Jon Jason to previous | to last
33 19-May-2006 19:35 9.478 kB sWINGERS to previous | to last
32 19-May-2006 19:27 9.293 kB aNAL GOOD to previous | to last
31 19-May-2006 19:24 9.117 kB Online video to previous | to last
30 23-Nov-2005 19:04 8.853 kB GregorHagedorn to previous | to last
29 23-Nov-2005 19:03 8.831 kB GregorHagedorn to previous | to last
28 05-Sep-2005 15:00 8.686 kB GregorHagedorn to previous | to last
27 05-Sep-2005 12:37 8.616 kB GregorHagedorn to previous | to last
26 02-Sep-2005 23:18 8.286 kB Administrator to previous | to last
25 02-Sep-2005 23:16 8.141 kB Administrator to previous | to last
24 02-Sep-2005 18:22 8.065 kB GregorHagedorn to previous | to last
23 01-Sep-2005 17:39 7.791 kB GregorHagedorn to previous | to last
22 01-Sep-2005 17:04 7.784 kB GregorHagedorn to previous | to last
21 01-Sep-2005 16:50 7.494 kB GregorHagedorn to previous | to last
« This page (revision-39) was last changed on 10-Sep-2006 20:45 by JanneJalkanen