On Sat, Jul 12, 2014 at 03:18:17AM +0530, Rupinder Singh wrote:
:- 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
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:
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.