google chrome - opening an xml file via hyperlink show xml as regular text -
i want show xml file inside iframe. works fine in firefox , ie in chrome show xml text.
so wanted check if general problem. example: if use view xml food menu link located in http://www.w3schools.com/xml/xml_examples.asp xml shown text file.
if right click link , chose open in new tab show xml should. or if open new tab , put url http://www.w3schools.com/xml/simple.xml shows file xml file.
if press right mouse button , select "open in new tab" show xml should.
i think whatever causes problem causes problem facing. questions are:
- what causes ?
- is there way around problem ?
- is bug in chrome ?
thanks.
chrome version 11.0.696.65
os: windows xp,i have checked in windows 7
for me definitely google chrome bug. try use right-click on link , select "open link in new tab" or "open link in new window" see pretty printed xml.
there target="_blank"
attribute within anchor element, causes problem:
<a target="_blank" href="simple.xml">view xml food menu</a>
look @ site http://www.xmlfiles.com/examples/. there no target="_blank"
, links works well.
you can use inspect element → edit html option remove attribute target="_blank"
, after xml printed too.
finally found chromium issue 84128 (reported 26/5/2011, version 11.0.696.71) that.
you don't need add explicite xslt stylesheet. that's not case here. if there no stylesheet applied, browser implicitly uses built-in, default variant.
edit:
i downloaded google chrome 12 beta (version 12.0.742.77 beta-m) beta-m , here bug solved.
comment 93 project member vse...@chromium.org, may 3, 2011 target="_blank" problem fixed in chrome 12.
(from http://code.google.com/p/chromium/issues/detail?id=434)
Comments
Post a Comment