Reputation: 1
Sorry for my english.
I have PHP classes for generated HTML forms:
class Html_ElementInput extends Html_Element
{
public function __construct($type=null)
{
parent::__construct();
$this->attrs = array
(
'type' => array('text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button'),
'name' => 'CDATA',
'value' => 'CDATA',
'checked' => array('checked'),
'disabled' => array('disabled'),
'readonly' => array('readonly'),
'size' => 'Number',
'maxlength' => 'Number',
// ......
This format is analog SGML-DTD description xHTML - http://economist.rudn.ru/files/web-studio/docs/html/xhtml/xhtml_1.0/xhtml1-transitional_dtd.txt
I wanted to change their class based HTML5, but there is no description of SGML-HTML5 specification.
Do I understand correctly that the SGML-HTML5 description would not?
Upvotes: 0
Views: 101
Reputation: 943980
HTML 5 is not based on SGML. It has two serializations, XML and HTML 5. There is no SGML version of HTML 5.
As far as I know, there is no official machine readable description of the language. I expect there will be once the language stabilizes, but it is still under development.
An unofficial (likely not always up to date) RelaxNG schema is available as part of validator.nu
Upvotes: 1