Example of HAX element schema JSON object. It's a pretty simple abstraction of HTML
elements that helps with packaging and sanitation. This is effectively HAX version
of a VDOM in which all elements
in the page must be converted into HAXElement Schema in order to get in and out of
the DOM that HAX is controlling.
- In HAXschema it is the demoSchema definitions
- When creating templates that are reusable
- Under View Source -> Download content -> HAXSchema for debugging purposes
h2 tag (core HTML)
{
"tag": "h2",
"properties": {
"data-primary": "15",
"data-design-treatment": "hoz-10p"
},
"content": "Introduction to ELMS: Learning Network"
}
p tag (core HTML)
{
"tag": "p",
"properties": {},
"content": "What is ELMS: Learning Network? How
is it fundamentally different from other learning technologies? Why is it your reading
this when it's example text that you've just added to see how to make a really solid
introduction to a new unit of instruction? Let's keep reading to find out!"
}
video-player (web component)
{
"tag": "video-player",
"properties": {
"source": "https://www.youtube.com/watch?v=pKLPQ4ufo64"
},
"content": ""
}