HTML Tags demo: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) (Demo page for HTML Tags) |
Yaron Koren (talk | contribs) (Resaving) |
||
Line 25: | Line 25: | ||
:'''Result:''' <htmltag tagname="div" b="c">This is a div.</htmltag> | :'''Result:''' <htmltag tagname="div" b="c">This is a div.</htmltag> | ||
5. An attempt at | 5. An attempt at JavaScript injection | ||
:'''Wikitext:''' <nowiki><htmltag tagname="a" href="javascript:window.alert('danger!');" b="c">This link will say something!</htmltag></nowiki> | :'''Wikitext:''' <nowiki><htmltag tagname="a" href="javascript:window.alert('danger!');" b="c">This link will say something!</htmltag></nowiki> | ||
:'''Result:''' <htmltag tagname="a" href="javascript:window.alert('danger!');" b="c">This link will say something!</htmltag> | :'''Result:''' <htmltag tagname="a" href="javascript:window.alert('danger!');" b="c">This link will say something!</htmltag> |
Revision as of 19:34, April 9, 2014
A demonstration of the HTML Tags extension:
1. Normal behavior
- Wikitext: <htmltag tagname="a" href="http://google.com" b="c">This is a link to Google.</htmltag>
- Result: This is a link to Google.
2. Unsupported attribute
- Wikitext: <htmltag tagname="a" href="http://google.com" b="c" unsupportedattrib="somevalue">This is a link to Google.</htmltag>
- Result: This is a link to Google.
3. No "tagname" value specified
- Wikitext: <htmltag href="http://google.com" b="c">This is a link to Google.</htmltag>
- Result: The attribute "tagname" must be set for this tag.
4. Unsupported "tagname" value
- Wikitext: <htmltag tagname="div" b="c">This is a div.</htmltag>
- Result: The tag name "div" is not supported for <htmltag>.
5. An attempt at JavaScript injection
- Wikitext: <htmltag tagname="a" href="javascript:window.alert('danger!');" b="c">This link will say something!</htmltag>
- Result: This link will say something!