在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:aredridel/html5开源软件地址:https://github.com/aredridel/html5开源编程语言:JavaScript 99.5%开源软件介绍:HTML5 Parser for node.jsExamplesA simple example: var HTML5 = require('html5');
var jsdom = require('jsdom');
var core = jsdom.browserAugmentation(jsdom.level(3));
var impl = new core.DOMImplementation();
var document = impl.createDocument();
var parser = new HTML5.JSDOMParser(document, core);
parser.parse('<p>I am a very small HTML document</p>');
console.log(document.getElementsByTagName("p")[0].innerHTML); Interesting features
InstallationUse You'll need to fetch dependencies or initialize git submodules if you're pulling this from my git repository.
and give it a run:
Git repository at http://dinhe.net/~aredridel/projects/js/html5.git/ |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论