publicId (W3C DOM Core property)
var pubid = document.doctype.publicId;
example above saves a reference to the
publicId of the
doctype. So if we were on a page with an XHTML 1.0 Strict doctype, the
pubid variable would have the value
-//W3C//DTD XHTML 1.0 Strict//EN.
The public identifier of an
null if no public
identifier is specified.
This property is read-only.
Only Opera in XHTML mode or
and Internet Explorer in XML are able to
publicId of an
Notation, because those
are the only environments in which the root objects themselves are exposed
1 On XHTML pages served as application/xhtml+xml.
There are no comments yet.