-
-
Couldn't load subscription status.
- Fork 22
Closed
Description
Minimal test:
var fs = require('fs');
var parse = require('posthtml-parser');
var render = require('posthtml-render');
var file = fs.readFileSync('in.html');
var raw = parse(file);
var html = render(raw);
fs.writeFileSync('out.html', html);Before update:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<input autofocus type="text" class="class" name="name" id="id" required>
</body>
</html>After update:
<html lang="en">
<head>
<meta charset="UTF-8"></head>
<body>
<input autofocus="" type="text" class="class" name="name" id="id" required=""></body>
</html>If disable XMLMode.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<input autofocus="" type="text" class="class" name="name" id="id" required="">
</body>
</html>Metadata
Metadata
Assignees
Labels
No labels