Hi!
I'd like to ask what HTML tags and which of their attributes are acceptable within the MediaWiki syntax? I've looked at Parser.php but it's confusing.
I need it because I and some other guy are writing a parser and HTML converter for MediaWiki syntax in Perl.
Regards,
Shlomi Fish
--------------------------------------------------------------------- Shlomi Fish shlomif@iglu.org.il Homepage: http://www.shlomifish.org/
Tcl is LISP on drugs. Using strings instead of S-expressions for closures is Evil with one of those gigantic E's you can find at the beginning of paragraphs.
Check out http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext
- MHart
----- Original Message ----- From: "Shlomi Fish" shlomif@iglu.org.il To: "Wikimedia developers" wikitech-l@wikimedia.org Sent: Wednesday, June 15, 2005 7:53 AM Subject: [Wikitech-l] What HTML tags and their attributes are acceptablewithin the syntax by MediaWiki
Hi!
I'd like to ask what HTML tags and which of their attributes are acceptable within the MediaWiki syntax? I've looked at Parser.php but it's confusing.
I need it because I and some other guy are writing a parser and HTML converter for MediaWiki syntax in Perl.
Regards,
Shlomi Fish
Shlomi Fish shlomif@iglu.org.il Homepage: http://www.shlomifish.org/
Tcl is LISP on drugs. Using strings instead of S-expressions for closures is Evil with one of those gigantic E's you can find at the beginning of paragraphs. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On Wednesday 15 June 2005 15:59, MHart wrote:
Check out http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext
- MHart
Hmmm... I see that the style="" tag is transferred verbatim. This may cause problems with malicious CSS styles present there.
See the attached message from the webdesign-L mailing list for details.
Regards,
Shlomi Fish
----- Original Message ----- From: "Shlomi Fish" shlomif@iglu.org.il To: "Wikimedia developers" wikitech-l@wikimedia.org Sent: Wednesday, June 15, 2005 7:53 AM Subject: [Wikitech-l] What HTML tags and their attributes are acceptablewithin the syntax by MediaWiki
Hi!
I'd like to ask what HTML tags and which of their attributes are acceptable within the MediaWiki syntax? I've looked at Parser.php but it's confusing.
I need it because I and some other guy are writing a parser and HTML converter for MediaWiki syntax in Perl.
Regards,
Shlomi Fish
Shlomi Fish shlomif@iglu.org.il Homepage: http://www.shlomifish.org/
Tcl is LISP on drugs. Using strings instead of S-expressions for closures is Evil with one of those gigantic E's you can find at the beginning of paragraphs. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Shlomi Fish wrote:
On Wednesday 15 June 2005 15:59, MHart wrote:
Check out http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext
I recommend against relying on any documentation you find on meta; look in includes/Sanitizer.php for the current tag and element whitelists.
Hmmm... I see that the style="" tag is transferred verbatim. This may cause problems with malicious CSS styles present there.
See the attached message from the webdesign-L mailing list for details.
There doesn't appear to be an attached message; note that our list, like many lists, strips many attachments. Consider using hyperlinks to web-accessible archives.
We're stripping any use of expression() or things that appear to be URL references in style attributes, if that's what you're referring to.
If you're referring to simply annoying styles such as position: crap, that's allowed (for now) but easily revertable.
-- brion vibber (brion @ pobox.com)
On Wednesday 15 June 2005 21:32, Shlomi Fish wrote:
On Wednesday 15 June 2005 15:59, MHart wrote:
Check out http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext
- MHart
Hmmm... I see that the style="" tag is transferred verbatim. This may cause problems with malicious CSS styles present there.
See the attached message from the webdesign-L mailing list for details.
Hmmm... the attached message was discared by the mailing list manager here. In any case, here it is:
http://www.shlomifish.org/WD-preventing-malicious-CSS.txt
Regards,
Shlomi Fish
Regards,
Shlomi Fish
----- Original Message ----- From: "Shlomi Fish" shlomif@iglu.org.il To: "Wikimedia developers" wikitech-l@wikimedia.org Sent: Wednesday, June 15, 2005 7:53 AM Subject: [Wikitech-l] What HTML tags and their attributes are acceptablewithin the syntax by MediaWiki
Hi!
I'd like to ask what HTML tags and which of their attributes are acceptable within the MediaWiki syntax? I've looked at Parser.php but it's confusing.
I need it because I and some other guy are writing a parser and HTML converter for MediaWiki syntax in Perl.
Regards,
Shlomi Fish
Shlomi Fish shlomif@iglu.org.il Homepage: http://www.shlomifish.org/
Tcl is LISP on drugs. Using strings instead of S-expressions for closures is Evil with one of those gigantic E's you can find at the beginning of paragraphs. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 6/15/05, Shlomi Fish shlomif@iglu.org.il wrote:
I'd like to ask what HTML tags and which of their attributes are acceptable within the MediaWiki syntax? I've looked at Parser.php but it's confusing.
The tag and attribute whitelists are in Sanitizer.php [1] -- at least that's what I used for HTML::WikiConverter.
I need it because I and some other guy are writing a parser and HTML converter for MediaWiki syntax in Perl.
It's about time. Text::WikiFormat is maddening :-)
Best, David
wikitech-l@lists.wikimedia.org