Fix length for dom_string creation.  Dump id attribute too.
Fix length for dom_string creation.  Dump id attribute too.

svn path=/trunk/libdom/; revision=13326

prepare/netsurf_libdom,prepare/netsurf_libdom,Achal-Aggarwal/libdom,Achal-Aggarwal/libdom,prepare/netsurf_libdom,dunkelstern/libdom,prepare/netsurf_libdom,Achal-Aggarwal/libdom,prepare/netsurf_libdom,Achal-Aggarwal/libdom,dunkelstern/libdom,dunkelstern/libdom,dunkelstern/libdom,dunkelstern/libdom,prepare/netsurf_libdom,Achal-Aggarwal/libdom,Achal-Aggarwal/libdom,dunkelstern/libdom