forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:RubyLouvre/avalon
- Loading branch information
Showing
5 changed files
with
91 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>TODO supply a title</title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<script src='avalon.observe.js'></script> | ||
<script> | ||
window.onload = function() { | ||
var node = avalon.parseHTML("<script>alert(1)<\/script>") | ||
document.body.appendChild(node) | ||
|
||
var g = '<g stroke="green" fill="white" stroke-width="5">\ | ||
<circle cx="25" cy="25" r="15" />\ | ||
<circle cx="40" cy="25" r="15" />\ | ||
<circle cx="55" cy="25" r="15" />\ | ||
<circle cx="70" cy="25" r="15" />\ | ||
</g>' | ||
var node = avalon.parseHTML(g) | ||
console.log(node) | ||
var el = avalon.parseHTML("<col width=120><tr><td></td></tr>") | ||
console.log(el) | ||
} | ||
|
||
//console.log(wrapper) | ||
</script> | ||
</head> | ||
<body> | ||
<div>TODO write content</div> | ||
</body> | ||
</html> |