John Beckett wrote: > OK. Some documentation would be good. Or, if anyone can point me to the > source code, > I'll study that. For example, in wikitext, why do > these fail: <S-F1> <q-args> > these work: <Space> <C-Left> > > I know the answer is that the MediaWiki software recognises that <s> and <q> > have an > html meaning, and the "-" is doing something ... but the source (or some docs) > should reveal what other text might give trouble.
The HTML sanitizer (Sanitizer.php, line 403) uses \w to match the element name, and - is not part of \w. (There are no HTML4 elements names that contain -, and only one so far in HTML5.) -- Magnus Kristiansen "Don't worry; the Universe IS out to get you." _______________________________________________ Wikia-l mailing list [email protected] http://lists.wikia.com/mailman/listinfo/wikia-l
