javascript - innerHTML doesn't work correctly with xhtml in Chrome -


I'm having trouble with Chrome 5.0.375.70, but FF 3.6.3 and < Strong> Opera 10.53 OK is the line of code below:

  document.getElementById ('content'). InnerHTML = data.documentElement.innerHTML; The  data  object from the code is a document (typef == 'object') and I  Chapter 01. XHTML  from the AJAX request  

Strong>:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! DOCTYPE html [& lt ;! ENTITY D "& amp; # x2014;" & Gt; & Lt ;! ENTITY o "& amp; # x2018;" & Gt; & Lt ;! ENTITY c "& amp; # x2019;" & Gt; & Lt ;! ENTITY O "& amp; # x201C;" & Gt; & Lt ;! ENTITY C "& amp; # x201D;" & Gt; ] & Gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; Louis Carroll by Alice's Adventures in Wonderland Chapter I: Rabbit-hole below & lt; / Title & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "style.css" /> & Lt; Link rel = "stylesheet" type = "application / vnd.adobe-page-template + xml" href = "page-template.xpgt" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "title_box" & gt; & Lt; H2 class = "chapnum" & gt; Chapter I & lt; / H2 & gt; & Lt; H2 class = "chaptitle" & gt; Down the Khargon-Hole & lt; / H2 & gt; & Lt; Hours / & gt; & Lt; / Div & gt;  

Chrome Cut all before body and as a result CSS Mises in the header; Users can not view formatted text and images.

How can I fix or bypass it?

PS I try to put chapter01.xhtml into the div which is

.wiseHTHML non-standard and a bad practice The implementation of the browser is dependent and it should not be used, especially with the XHTML. This is not supported.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -