0

actionscript 2のXMLオブジェクトを介してブロガーページをロードするたびに、ページのほとんどすべてのコンテンツが魔法のように消えます。ページはxhtmlにあるので、これでうまくいくと思います。SteveYeggeのブログを読み込もうとすると次のようになります。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://www.google.com/2005/gml/b" xmlns:data="http://www.google.com/2005/gml/data" xmlns:expr="http://www.google.com/2005/gml/expr"><head><script type="text/javascript">(function() { var a=window;function f(e){this.t={};this.tick=function(d,b,c){var i=c?c:(new Date).getTime();this.t[d]=[i,b]};this.tick(&quot;start&quot;,null,e)}var g=new f;a.jstiming={Timer:f,load:g};try{a.jstiming.pt=a.external.pageT}catch(h){};a.tickAboveFold=function(e){var d,b=e,c=0;if(b.offsetParent){do c+=b.offsetTop;while(b=b.offsetParent)}d=c;d</script></head></html>

<body>最後までスクロールすると、タグ全体が欠落していることがわかります。これを修正する方法について何か提案はありますか?

編集: あなたがそれを自分でテストできるように、ここにいくつかの簡単なコードがあります:

var foo:XML = new XML();
foo.ignoreWhite = true;

foo.onLoad = function(success:Boolean) {
    trace(foo.toString());
}
foo.load("http://steve-yegge.blogspot.com/");
4

1 に答える 1