Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Tags: Doesn't parse ref tag name parameters with double-quotes and hyphen #30

Closed
earwig opened this issue May 3, 2013 · 2 comments

Comments

@earwig
Copy link
Owner

earwig commented May 3, 2013

Hey Earwig, try testing this:
wikicode = Builder().build(Tokenizer().tokenize('<ref name="a-b">'))
Error I get is: in my local tokenizer.py, line 472, in _actually_close_tag_opening:
if isinstance(self._stack[-1], tokens.TagAttrStart): IndexError: list index out of range
Only seems to occur when: 1) It's a ref tag, 2) name parameter is specified and has a value with certain characters in it, like - (hyphen) or = (equals), 3) the name parameter value is in double-quote. Bug? Zad68 14:10, 14 March 2013 (UTC)

[1]

@ghost ghost assigned earwig May 3, 2013
@earwig
Copy link
Owner Author

earwig commented May 3, 2013

Adding that ampersands also affect this. I believe I know what is causing the problem.

@earwig
Copy link
Owner Author

earwig commented Jun 1, 2013

Fixed in d2b3954.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant