You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
<!DOCTYPE html><html><head><title>Generic & Simple Prerendering Demo</title></head><body><inputid="new-todo" placeholder="New todo"><divid="todos"></div><scriptsrc="main.js"></script></body></html>
output:
<html><head><title>Generic & Simple Prerendering Demo</title></head><body><inputid="new-todo" placeholder="New todo"><divid="todos"><ul><liclass="item">Do the dishes <buttonclass="remove-todo" data-index="0">X</button></li><liclass="item">Make the bed <buttonclass="remove-todo" data-index="1">X</button></li><liclass="item">Take out the trash <buttonclass="remove-todo" data-index="2">X</button></li></ul></div><scriptsrc="main.js"></script></body></html>
Note that the <!DOCTYPE html> is stripped out.
It is important that the doctype is preserved, as it affects page rendering.
The text was updated successfully, but these errors were encountered:
nemtsov
changed the title
<!doctype html> is stripped out
<!DOCTYPE html> is stripped out
Dec 17, 2016
I was just going to post this issue, but I'm one hour delayed... Seems the problem is on this line: return document.documentElement.outerHTML. Isn't hard to get the doctype and fix that.
Edit: how about this? (I just tested here, it's working)
From
examples/generic-simple
:input:
output:
Note that the
<!DOCTYPE html>
is stripped out.It is important that the doctype is preserved, as it affects page rendering.
The text was updated successfully, but these errors were encountered: