Monday, 14 July 2014

Re: Some queries reguarding LibHubbub

On Sat, Jul 12, 2014 at 03:18:17AM +0530, Rupinder Singh wrote:
> Hi,
>
> 1) Ref:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#parsing-main-incdata
> :- The current support for scripting in Libhuubbub treebuilder is quite
> incomplete. The algorithms for scripting require running the script from
> external sources among other things. Completely implementing it, I think
> isn't possible at the moment, given the existing support. However it could
> be done partly. To what extent should I extend the support? Or should I
> leave it at the level we have it currently? The tokeniser has been updated
> to accomodate the script tags but the treebuilder lacks it.

Script execution is handled by the client of libhubbub. There is no need
whatsoever for libhubbub to have any explicit knowledge of script
execution. I'm sure Vincent is better placed to provide a more complete
answer here.

> 2) Ref:
> http://git.netsurf-browser.org/libhubbub.git/tree/src/tokeniser/tokeniser.c?h=rupindersingh/libhubbub#n206
> This variable here is to be set from the treebuilder or the client, I am
> not clear with that. Where exactly in the code should I set this variable?
> The condition for whether to handle the CDATA or not is specified here:
> http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#markup-declaration-open-state

The treebuilder is responsible for setting this. When the current node
is updated, it must set the flag to true if the current node is not in
the HTML namespace; otherwise, it must set it to false.


J.

No comments:

Post a Comment