reference-feed-textinput.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. :py:attr:`feed.textinput`
  2. =========================
  3. A text input form. No one actually uses this. Why are you?
  4. .. _reference.feed.textinput.title:
  5. :py:attr:`feed.textinput.title`
  6. -------------------------------
  7. The title of the text input form, which would go in the value attribute of the
  8. form's submit button.
  9. .. _reference.feed.textinput.link:
  10. :py:attr:`feed.textinput.link`
  11. ------------------------------
  12. The link of the script which processes the text input form, which would go in
  13. the action attirbute of the form.
  14. If this is a relative :abbr:`URI (Uniform Resource Identifier)`, it is
  15. :ref:`resolved according to a set of rules <advanced.base>`.
  16. .. _reference.feed.textinput.name:
  17. :py:attr:`feed.textinput.name`
  18. ------------------------------
  19. The name of the text input box in the form, which would go in the name
  20. attribute of the form's input box.
  21. .. _reference.feed.textinput.description:
  22. :py:attr:`feed.textinput.description`
  23. -------------------------------------
  24. A short description of the text input form, which would go in the label element
  25. of the form.
  26. .. rubric:: Annotated example
  27. This is a text input in a feed:
  28. ::
  29. <textInput>
  30. <title>Go!</title>
  31. <link>http://example.org/search</link>
  32. <name>keyword</name>
  33. <description>Search this site:</description>
  34. </textInput>
  35. This is how it could be rendered in :abbr:`HTML (HyperText Markup Language)`:
  36. ::
  37. <form method="get" action="http://example.org/search">
  38. <label for="keyword">Search this site:</label>
  39. <input type="text" id="keyword" name="keyword" value="">
  40. <input type="submit" value="Go!">
  41. </form>
  42. .. rubric:: Comes from
  43. * /rdf:RDF/rdf:textinput
  44. * /rss/channel/textInput
  45. * /rss/channel/textinput