|
From: martin f k. <ma...@ma...> - 2005-03-08 18:44:41
|
also sprach David Goodger <go...@py...> [2005.03.08.1817 +0100]: > I suspect that getElementsByName means something different. Perhaps > get all "a" tags, or all "img" tags? No, that would be getElementsByTagName :) > >If you want, I can submit a patch. I would just > >duplicate-search-replace the class directive. :) > > Please give it a try! Start with > docutils/parsers/rst/directives/misc.py. Attached. I have only implemented it all the way through to the HTML writer, so all other writers treat the tag as usual. I noticed named_tags and can guess at the purpose of this list. We will have to decide on a policy what to do when the name directive is specified in front of one of these. I also did not bother writing a test-suite. You probably have an automated framework, no? Enjoy. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver! spamtraps: mad...@ma... "this sentence contradicts itself -- no actually it doesn't." -- douglas hofstadter |