Skip to content

Instantly share code, notes, and snippets.

Created June 3, 2012 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2861288 to your computer and use it in GitHub Desktop.
Save anonymous/2861288 to your computer and use it in GitHub Desktop.
Sample HTML
[ { "raw": "!DOCTYPE html", "data": "!DOCTYPE html", "name": "!DOCTYPE", "type": "directive" },
{
"attribs": {},
"name": "html",
"type": "tag",
"raw": "html",
"data": "html",
"children": [
{
"attribs": {},
"name": "head",
"type": "tag",
"raw": "head",
"data": "head",
"children": [
{
"attribs": {
"src": "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"
},
"raw": "script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"",
"data": "script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"",
"name": "script",
"type": "script"
},
{
"attribs": {
"src": "/assets/firebug/build/firebug-lite.js"
},
"name": "script",
"type": "script",
"raw": "script src=\"/assets/firebug/build/firebug-lite.js\"",
"data": "script src=\"/assets/firebug/build/firebug-lite.js\"",
"children": [
{
"raw": "{\"debug\":false}",
"type": "text",
"data": "{\"debug\":false}"
}
]
},
{
"attribs": {
"src": "/assets/jquery.expect.js"
},
"raw": "script src=\"/assets/jquery.expect.js\"",
"data": "script src=\"/assets/jquery.expect.js\"",
"name": "script",
"type": "script"
}
]
},
{
"raw": "body",
"children": [
{
"raw": "\n",
"data": "\n",
"type": "text"
},
{
"raw": "<h1>Most Important</h1>",
"data": "<h1>Most Important</h1>",
"type": "comment"
},
{
"raw": "\n",
"data": "\n",
"type": "text"
},
{
"raw": "h1",
"data": "h1",
"name": "h1",
"type": "tag"
}
],
"data": "body",
"name": "body",
"type": "tag"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment