Return dictionary of HTML attributes for a single ListControl item. The HTML element types that describe list items are: OPTION for SELECT controls, INPUT for the rest. These elements have HTML attributes that you may occasionally want to know about -- for example, the "alt
(self, name, by_label=False, nr=None)
| 2006 | o.disabled = disabled |
| 2007 | |
| 2008 | def get_item_attrs(self, name, by_label=False, nr=None): |
| 2009 | """Return dictionary of HTML attributes for a single ListControl item. |
| 2010 | |
| 2011 | The HTML element types that describe list items are: OPTION for SELECT |
| 2012 | controls, INPUT for the rest. These elements have HTML attributes that |
| 2013 | you may occasionally want to know about -- for example, the "alt" HTML |
| 2014 | attribute gives a text string describing the item (graphical browsers |
| 2015 | usually display this as a tooltip). |
| 2016 | |
| 2017 | The returned dictionary maps HTML attribute names to values. The names |
| 2018 | and values are taken from the original HTML. |
| 2019 | |
| 2020 | """ |
| 2021 | deprecation( |
| 2022 | "control.get(...).attrs") |
| 2023 | return self._get(name, by_label, nr).attrs |
| 2024 | |
| 2025 | def close_control(self): |
| 2026 | self._closed = True |
nothing calls this directly
no test coverage detected