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*:
…
That it throws an exception is a bug. The expected output would be something along the lines of:TypeError: 'NoneType' object has no attribute '__getitem__'
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