Edgewall Software

Opened 15 years ago

Closed 15 years ago

#309 closed defect (worksforme)

py:attrs ignores accesskey attribute

Reported by: alex.stapleton@… Owned by: cmlenz
Priority: major Milestone:
Component: Template processing Version: 0.5.1
Keywords: Cc:

Description

<a py:attrs="{'accesskey': 'h'}">H</a>

Results in the HTML

<a>H</a>

Rather than

<a accesskey="h">H</a>

Change History (1)

comment:1 Changed 15 years ago by cmlenz

  • Milestone 0.6 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hmm, works for me. Example:

>>> from genshi.template import MarkupTemplate
>>> tmpl = MarkupTemplate('''<doc xmlns:py="http://genshi.edgewall.org/">
...   <a py:attrs="{'accesskey': 'h'}">H</a>
... </doc>''')
>>> print tmpl.generate()
<doc>
  <a accesskey="h">H</a>
</doc>
Note: See TracTickets for help on using tickets.