Skip to content
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

Validator flagging DOCTYPE - using macro not working #21

Open
axeljlarsen opened this issue Feb 8, 2018 · 0 comments
Open

Validator flagging DOCTYPE - using macro not working #21

axeljlarsen opened this issue Feb 8, 2018 · 0 comments
Labels

Comments

@axeljlarsen
Copy link

axeljlarsen commented Feb 8, 2018

The default DOCTYPE declaration for the master page in Kentico is DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

I'm getting a number of errors relating to this when I validate my accelerated mobile page. I tried using the macro to determine what the DOCTYPE declaration should be but it's not actually evaluated and produces a similar validation error.

Validation Error Example:

Prohibited or invalid use of HTML Tag
The attribute '"-//w3c//dtd' may not appear in tag 'html doctype'.
1 instance
Line 1:0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/

Another Example:

The attribute '!ampfilter.isamppage()' may not appear in tag 'html doctype'. (see https://www.ampproject.org/docs/reference/spec#required-markup)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants