A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00638.html below:

Problem with attribute having unclosed quotes (python html5lib)

On 19/01/13 04:24, alexander wrote:
*For example*: (missing quotes):
1. <a href="http://www.somewebsite.com> some link </a>
2. <img src=">
It only happens when the input has nothing valid. If i replace example 2
with any of this:
1. <div> <img src="> </div>
2. <div> </div> <img src=">

(it can be div, or anything else, as long as the malformed tag is not the
only element)
*The question*:

I would like to know if this is the expected behavior or i am doing something 
wrong.
*Output*:
TypeError: 'NoneType' object has no attribute '__getitem__'
That it throws an exception is a bug. The expected output would be something along the lines of: 
1. <a href="http://www.somewebsite.com> some link</a>"></a>
2. <img src=">">

Thanks,

Geoffrey.

--
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
To post to this group, send an email to html5lib-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
html5lib-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4