Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460174 - dev-python/markdown: non valid HTML5 in footnotes
Summary: dev-python/markdown: non valid HTML5 in footnotes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-03 20:07 UTC by pferor
Modified: 2013-04-10 20:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pferor 2013-03-03 20:07:47 UTC
Invalid HTML5 when using Markdown footnotes (dev-python/markdown)

Reproducible: Always

Steps to Reproduce:
1. Use footnote extension in Python Mardkwon
2. Generate the HTML code
Actual Results:  
<a href="#fnref:abc" rev="footnote" title="Jump back to footnote 2 in the text">↩</a>

Expected Results:  
<a href="#fnref:abc" title="Jump back to footnote 2 in the text">↩</a>

The "rev" attribute on the a element is obsolete (source: http://dev.w3.org/html5/markup/a.html)
Comment 1 pferor 2013-03-03 20:10:44 UTC
Solution:

In file: /usr/lib/python3.2/site-packages/markdown/extensions/footnotes.py
Line #136

Just comment that line.

   -       backlink.set("rev", "footnote")
   +     # backlink.set("rev", "footnote")
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-03-04 08:05:43 UTC
This sounds like an upstream bug.
Comment 3 pferor 2013-04-10 20:01:14 UTC
This issue has been resolved in the last version, which discriminates checking the HTML version to use.
Comment 4 pferor 2013-04-10 20:02:23 UTC
This issue has been resolved in the last version, which discriminates checking the HTML version to use.