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