https://bugzilla.wikimedia.org/show_bug.cgi?id=17031

           Summary: Sanitizer rejects identifies valid xhtml attributes
           Product: MediaWiki
           Version: 1.15-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Sanitizer will reject attributes found in tags as invalid even though they are
technically valid.

Example:
<tag hyphen-name="value"></tag>

When parserHook() is called for <tag>, the $args parameter will be an empty
array because 'hyphen-name' is rejected.

To my knowledge, attribute names must start with [a-zA-Z] followed by zero or
more from the set [a-zA-Z0-9._-] (is this accurate?). Currently, only
attributes of 1 or more [a-zA-Z0-9] are accepted. This is also a minor problem,
because attribute names cannot start with a number.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to