HTML1115: X-UA-Compatible META tag ('IE=9, IE=8, chrome=1') ignored because document mode is already finalized

StackOverflow https://stackoverflow.com/questions/10932881

Вопрос

I got such warning:

HTML1115: X-UA-Compatible META tag ('IE=9, IE=8, chrome=1') ignored because document mode is already finalized.

when I try to open my website at IE9. I have addthis script:

<script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#async=1"></script>

which adds google+ button

<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>

When I comment this line - warning disappear. How I can fix this?

Это было полезно?

Решение

The x-ua-compatible meta tag must come before all other elements that aren't meta or title.

Otherwise, I think the document mode is already decided and IE will ignore later attempts to cue it as to which doc mode to use.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top