Changes between Version 2 and Version 3 of InlineMacro


Ignore:
Timestamp:
Dec 30, 2008 4:19:01 PM (6 years ago)
Author:
dwclifton
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InlineMacro

    v2 v3  
    33== Description == 
    44 
    5 Return raw, inline XHTML markup that has been validated and sanitized. 
     5Returns raw, inline XHTML markup that has been validated and sanitized. 
     6 
     7== Validation == 
     8 
     9Markup that doesn't follow these requirements will be rejected with an error message: 
     10 
     11 * Elements must be [WikiPedia:Well-formed_element well-formed]. 
     12 * Tags and attribute names must be in lowercase, attribute values are required and must be enclosed in quotes. 
     13 * Empty elements must be self-closing with a space before the forward slash, e.g. <img ... />. 
     14 
     15== Sanitization == 
     16 
     17Dangerous constructs such as <script> elements will be removed. 
     18 
     19== Use Cases == 
     20 
     21`Inline` is useful for creating "phrase" elements not supported by WikiFormatting, or for including 
     22attributes such as titles. The `#!html` [WikiProcessors WikiProcessor] works well for creating larger 
     23chunks of markup, and in particular block-level elements such as an <address> that are also not supported 
     24(a [http://microformats.org/ Microformat] is an excellent example). However, `Inline` is designed to be 
     25embedded directly in another construct, typically a paragraph of text. 
    626 
    727== Bugs/Feature Requests ==