summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-08-11 01:29:00 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-08-11 01:29:00 +0000
commita6c3624c75a547e142fc732898f9a3890fa9e2f5 (patch)
tree6e1b44c51a706843d2057e3e1126ffa5714becf1 /docs
parent4aef3c775e93d5add0277941fe0ecccc91d4ccb3 (diff)
downloadlibhubbub-a6c3624c75a547e142fc732898f9a3890fa9e2f5.tar.gz
libhubbub-a6c3624c75a547e142fc732898f9a3890fa9e2f5.tar.bz2
Move one step closer to getting encoding changes working.
svn path=/trunk/hubbub/; revision=5000
Diffstat (limited to 'docs')
-rw-r--r--docs/Treebuilder14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/Treebuilder b/docs/Treebuilder
index 9c7dce4..d8924f5 100644
--- a/docs/Treebuilder
+++ b/docs/Treebuilder
@@ -187,4 +187,16 @@ Callback behaviour
This function must set the quirks mode flag of the document to "mode".
-
+ | int hubbub_tree_encoding_change(void *ctx,
+ | const char *name);
+
+ This function is called when a meta tag which specifies a charset is seen
+ in the treebuilder. [1] The client is responsible for checking if the
+ encoding the document is being processed as should actually be changed, and
+ if it should, this function should return 1. In this case, the parser
+ instance will return the error code HUBBUB_ENCODINGCHANGE when it returns
+ from parsing the chunk that triggered the encoding change. The parser
+ instance should then be destroyed and a new one created with that encoding
+ specified.
+
+ [1] http://www.whatwg.org/specs/web-apps/current-work/#in-head