1

I can only use:

<object> data.. </object>, 

not:

Can I change the syntax:

<object data="data:text/html;base64,drgsdrgsdrgsdrgsdrgsdrgsdrg=="></object>

into this style:

<object>data</object> style?

No.

The child nodes of an object element:

  1. Provide alternative content in case the object data can't be loaded
  2. Are expressed in the form of HTML not a URI

The closest you could get would be to decode the HTML embedded in the URI (despite the claim it is text/html, the URI doesn't appear to resolve to anything sane) and then use that instead of having an object at all.

4

1 に答える 1

2

いいえ。

オブジェクト要素の子ノード:

  1. オブジェクト データを読み込めない場合に備えて、代替コンテンツを提供する
  2. URIではなくHTML形式で表現されている

あなたが得ることができる最も近いのは、URIに埋め込まれたHTMLをデコードすることです(それがであるという主張にもかかわらず、text/htmlURIは正気なものに解決されないようです)。

于 2012-12-26T17:17:22.613 に答える