1

I need the list of tagnames, interface names, attributes of each tagname (the name and the type) and the relations between them.

The info at https://html.spec.whatwg.org/multipage/ is unformated and in an unprocessable format.

The "Index elements" from HTML 5.1 2nd Edition at w3.org have better info but not in a structured format (json, csv, xml, etc).

1
  • 1
    You could try to find unofficial DTD or XSD for HTML5. Commented Mar 14, 2018 at 19:07

1 Answer 1

1

HTML is machine-readable/can be parsed, so not sure what you mean by "unprocesable". The document containing the information you desire may as well be valid markup, but more importantly proves its parseable.

Alternatively, if you view source, there is a script html-dfn.js, and if you follow that you can see that it calls xrefs.json, which I'm assuming renders those pages.

Alternatively, alternatively, WHATWG offers a very non-open data format flavor ala PDF which is visible form the main navigation.

3
  • 1
    Yes I can parse w3.org/TR/html51/fullindex.html#index-elements, but I hope is there an open structured format Commented Mar 14, 2018 at 18:12
  • 1
    yes, the document you submitted is an open (well) structured format. but i also linked to JSON that has the same content/data.
    – albert
    Commented Mar 14, 2018 at 19:43
  • 1
    what did your search return? mine shows 7 results
    – albert
    Commented Mar 14, 2018 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.