DOM building process

View: New views
2 Messages — Rating Filter:   Alert me  

DOM building process

by Karthick Jayaraman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Everybody,

Can someone explain to me the DOM building process with some pointers
to the portions in the source code, please.

I understand how the Tokenizer interacts with the Parser and creates
HTML elements corresponding to tags. However, I am not able to pin
down the portions in the source code that add attributes to the HTML
element. I set breakpoint to the Element::setAttribute functions, but
I dont see the parser calling it.

I appreciate your help.

--
Cheers!,
Karthick Jayaraman

You must do the things you think you cannot do.
Eleanor Roosevelt

http://web.syr.edu/~kjayaram
_______________________________________________
webkit-dev mailing list
webkit-dev@...
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Re: DOM building process

by Darin Adler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Nov 1, 2009, at 4:23 PM, Karthick Jayaraman wrote:

> I am not able to pin down the portions in the source code that add  
> attributes to the HTML element. I set breakpoint to the  
> Element::setAttribute functions, but I dont see the parser calling it.

I’m not sure this query belongs in the webkit-dev list. I can’t tell  
if you are working on development of WebKit or not.

The HTML parser uses the setAttributeMap function to set the  
attributes of an element. This is done in the parseToken function.

     -- Darin

_______________________________________________
webkit-dev mailing list
webkit-dev@...
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev