Commit ef231ec6 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Fall back on "placeholder" when "placeholder-text" is not used

While "placeholder-text" usage predates aria-placeholder, some user agent
implementors would prefer to expose placeholder text using "placeholder"
because doing so is consistent with the convention used for other ARIA
properties. So check for both.
parent 0c9663e0
...@@ -369,6 +369,10 @@ class Generator: ...@@ -369,6 +369,10 @@ class Generator:
if placeholder: if placeholder:
return [placeholder] return [placeholder]
placeholder = attrs.get('placeholder')
if placeholder:
return [placeholder]
return [] return []
def _generateLabelAndName(self, obj, **args): def _generateLabelAndName(self, obj, **args):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment