We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The <!DOCTYPE> prototype is DocumentTypePrototype and a regular element is ElementPrototype.
<!DOCTYPE>
DocumentTypePrototype
ElementPrototype
For example a <div> is ElementPrototype > HTMLElementPrototype > HTMLDivElementPrototype.
<div>
HTMLElementPrototype
HTMLDivElementPrototype
So if you're hydrating at the top level of the document, you need to account for this since you can't create <!DOCTYPE html> like a regular element.
document
<!DOCTYPE html>
document.createElement("div");
document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Transitional//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdd');
There's a discussion with more details regarding the challenges of hydrating <!DOCTYPE> in Svelte here: plentico/plenti#91
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
<!DOCTYPE>
prototype isDocumentTypePrototype
and a regular element isElementPrototype
.For example a
<div>
isElementPrototype
>HTMLElementPrototype
>HTMLDivElementPrototype
.So if you're hydrating at the top level of the
document
, you need to account for this since you can't create<!DOCTYPE html>
like a regular element.Creating regular html element in JS
Creating !DOCTYPE in JS
There's a discussion with more details regarding the challenges of hydrating
<!DOCTYPE>
in Svelte here: plentico/plenti#91The text was updated successfully, but these errors were encountered: