jetti777Ltd / mochiweb

Automatically exported from code.google.com/p/mochiweb
Other
0 stars 0 forks source link

mochiweb_html:tokens fails with body of url "http://www.mingw.org/docs.shtml" #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
** exception error: no case clause matching <<"<!DOCTYPE html PUBLIC
\"-//W3C//DTD XHTML 1.0 Strict//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html "...>>
     in function  mochiweb_html:find_qgt/2
     in call from mochiweb_html:tokenize/2
     in call from mochiweb_html:tokens/3

Original issue reported on code.google.com by matteo.redaelli on 8 May 2010 at 7:21

GoogleCodeExporter commented 8 years ago
One problem is that there are <?php ?> tags in there, it looks like there's 
another issue though. 

Original comment by bob.ippo...@gmail.com on 8 May 2010 at 7:33

GoogleCodeExporter commented 8 years ago
More specifically, tokenization works fine if you remove the <?php ?> tag, but 
parse doesn't.

Original comment by bob.ippo...@gmail.com on 8 May 2010 at 7:34

GoogleCodeExporter commented 8 years ago
This document also has some other wonders: </br/> for example, which mochiweb 
doesn't like.

Original comment by bob.ippo...@gmail.com on 23 Jul 2010 at 10:30

GoogleCodeExporter commented 8 years ago
http://github.com/mochi/mochiweb/commit/16f560e35db55472615a136c08fa38746b39ad47

Original comment by bob.ippo...@gmail.com on 23 Jul 2010 at 10:57