ddkilzer at webkit.org
Thu Feb 19 07:44:58 PST 2009
Which revision of WebKit are you using (or closest to)?
Which version of bison (bison --version) are you using to generate the grammar?
The incorrectly-parsed HTML works fine in Safari on Mac OS X for me.
From: Javed Rabbani <jrabbani at gmail.com>
To: webkit-dev at lists.webkit.org
Sent: Thursday, February 19, 2009 5:41:10 AM
working on a WebKit port for some platform and facing an issue with working of
everything is parsed without error:
webkit_small.jpg" ALT=" " onclick="document.write('Hello World');" >
soon I specify the same functionality through a separate function; I run into
trouble as the parser inside Grammar.cpp fails with return value of 1. Here is
the source for the HTML file:
webkit_small.jpg" ALT=" " onclick=OnClickHandler()>
figured out so far that parsing fails as it does not get all the tokens. It
only retrieves the first token and interprets it as "FUNCTION (269)". Afterwards,
the execution terminates and no further tokens are read by the parser. Ideally
it should continue with tokens for OPENBRACE (314), IDENT(317), STRING(318),
CLOSEBRACE(315) etc. I am not sure what is going wrong to this bison parser? If
anyone has faced somewhat similar issues; any help or suggestion is greatly
J R Shah
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev