[webkit-dev] Grammer for html parsing
darin at apple.com
Mon Feb 9 15:11:54 PST 2009
On Feb 9, 2009, at 12:23 PM, Nilesh Patil wrote:
> Yeah.... But still have a doubt. Doesn't it need to compare tags
> with what ever has come as response? i mean if some data comes then
> webkit must be identifying it in terms of HTML tags or other type of
> data. So is there no need of string comparison of actual HTML tags ?
This doesn’t answer your entire question, but I think it gets to the
core of what you’re asking:
The code that figures out what kind of element to create based on the
HTML tag is HTMLElementFactory::createHTMLElement in
HTMLEventFactory.cpp. It’s called by HTMLParser::getNode.
More information about the webkit-dev