.TH "Eliom_content.Html5.Id" 3o 2014-07-10 OCamldoc ""
.SH NAME
Eliom_content.Html5.Id \- Node identifiers
.SH Module
Module Eliom_content.Html5.Id
.SH Documentation
.sp
Module
.BI "Id"
:
.B sig end
.sp
Node identifiers
.sp
.sp
.sp
.sp
.I type
.B +'a
.I id
.sp
The type of global HTML5 element identifier\&.
.sp
.sp
.I val new_elt_id
:
.B ?global:bool -> unit -> 'a id
.sp
The function
.B new_elt_id ()
creates a new global HTML5 element
identifier (see the Eliom manual for more information on )\&.
.sp
.sp
.I val create_named_elt
:
.B id:'a id ->
.B 'a Eliom_content.Html5.elt -> 'a Eliom_content.Html5.elt
.sp
The function
.B create_named_elt ~id elt
create a copy of the
element
.B elt
that will be sent to client with the reference
.B id
\&.
.sp
.sp
.I val create_global_elt
:
.B 'a Eliom_content.Html5.elt -> 'a Eliom_content.Html5.elt
.sp
The function
.B create_named_elt elt
is equivalent to
.B create_named_elt ~id:(new_elt_id ()) elt
\&.
.sp
.sp