File: reference-feed-textinput.rst

package info (click to toggle)
feedparser 6.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,540 kB
  • sloc: xml: 11,459; python: 4,575; makefile: 7
file content (75 lines) | stat: -rw-r--r-- 1,737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
:py:attr:`feed.textinput`
=========================

A text input form.  No one actually uses this.  Why are you?


.. _reference.feed.textinput.title:

:py:attr:`feed.textinput.title`
-------------------------------

The title of the text input form, which would go in the value attribute of the
form's submit button.


.. _reference.feed.textinput.link:

:py:attr:`feed.textinput.link`
------------------------------

The link of the script which processes the text input form, which would go in
the action attribute of the form.

If this is a relative :abbr:`URI (Uniform Resource Identifier)`, it is
:ref:`resolved according to a set of rules <advanced.base>`.


.. _reference.feed.textinput.name:

:py:attr:`feed.textinput.name`
------------------------------

The name of the text input box in the form, which would go in the name
attribute of the form's input box.


.. _reference.feed.textinput.description:

:py:attr:`feed.textinput.description`
-------------------------------------

A short description of the text input form, which would go in the label element
of the form.


.. rubric:: Annotated example

This is a text input in a feed:
::


    <textInput>
    <title>Go!</title>
    <link>http://example.org/search</link>
    <name>keyword</name>
    <description>Search this site:</description>
    </textInput>


This is how it could be rendered in :abbr:`HTML (HyperText Markup Language)`:
::


    <form method="get" action="http://example.org/search">
    <label for="keyword">Search this site:</label>
    <input type="text" id="keyword" name="keyword" value="">
    <input type="submit" value="Go!">
    </form>


.. rubric:: Comes from

* /rdf:RDF/rdf:textinput
* /rss/channel/textInput
* /rss/channel/textinput