![]() |
Allow / inside fragment identifier
From http://tools.ietf.org/html/rfc3986:
Quote:
Code:
frag_pat = re.compile(r'[-A-Za-z0-9_:.]+$')I'd suggest to add / and maybe ? to the list, because the standard explicitly allows that. The issue breaks conversion for certains HTMLs. |
That section is there to workaround limitations in Adobe Digital Editions, which tends to fall over and die with fragment identifiers that contain characters other than those in the regex, as is noted in the comment.
Not to mention that the cleanup is performed for fragment identifiers in the NCX ToC, for which the HTML spec is irrelevant. |
| All times are GMT -4. The time now is 10:55 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.