-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
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
cannot put <meta charset=""> first #140
Comments
document is a thin wrapper that's pretty much just for quick prototyping. If you want more control, I would suggest just using If this is more of a feature request than a bug report, adding an automatic |
Honestly not sure whether this is a bug report or a feature request. ;) But I agree, I wasn't aware that I could use |
I have a similar issue trying to set the doc rendered opening html tag to html lang="en" using dominate.tags.html |
In HTML5 it is recommended to explicitly specify the character encoding with a
meta
element in thehead
:To make sure this encoding is also applied to the title of the document, it should come before the
title
element. However, if I try to do so with the codethe result is
i.e. I get two
title
elements. If I specify the title instead as an argument ofdominate.document
, there is only onetitle
element, but it is before themeta
element.I see two ways around this:
The
title
attribute ofdominate.document
is only used to generate atitle
element if none has been added manually.dominate.document
gets an additionalcharset
argument.My preference would be (1).
The text was updated successfully, but these errors were encountered: