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

       Web browser: ---
             Bug #: 31110
           Summary: HTML5 placeholder attribute support
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: ly.meng.w...@gmail.com
                CC: wikibugs-l@lists.wikimedia.org
    Classification: Unclassified


Created attachment 9091
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9091
Support for HTML5 placeholder attribute

This enhancement allows Semantic Forms to support the HTML5 "placeholder"
attribute on text inputs, text areas, and comboboxes.

http://dev.w3.org/html5/spec/Overview.html#the-placeholder-attribute

http://diveintohtml5.org/forms.html

Usage example:

{{{field|monthly unique visitors|placeholder=Ex: this is an example}}}

Notes:

-The combobox requires a modification in the .js script, and for some reason,
the placeholder attribute on this input seems to only work if it's the last
attribute defined in the input tag.

-The compatible browsers auto-style the placeholder for Semantic Forms'text
inputs and text areas, but don't apply any style for the comboboxes. It has to
be defined in the CSS. In the current patch I just applied a style for any
placeholders, but there is in the comments the specific style for the
comboboxes too.

-Wiki syntax doesn't work inside the placeholders (but doesn't cause a crash
either)

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

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to