<div>PS: I use the webkit which is ported to Qt/E4.5.0<br><br></div>
<div class="gmail_quote">2009/5/19 naixuan guan <span dir="ltr">&lt;<a href="mailto:guannaixuan@gmail.com">guannaixuan@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi, everyone!</div>
<div> </div>
<div>The HTML page is as follow:</div>
<div> </div>
<div>&lt;OBJECT id=&quot;StormPlayer&quot; width = 800 height = 400 data = &quot;<a href="http://1.wmv/" target="_blank">1.wmv</a>&quot;&gt;&lt;/OBJECT&gt;</div>
<div> </div>
<div>when webkit detect the object, it automatically thought the mimetype of this object is &quot;video/x-ms-wmv&quot;</div>
<div>when I change the data attribute to &quot;1.avi&quot;, webkit thought the mimetype is &quot;video/x-msvideo&quot;</div>
<div> </div>
<div>I really want to know how does webkit do this kind of judge. I search the src code with the key word &quot;video/x-ms-wmv&quot;, but I got nothing.</div>
<div>Currently I only know two functions may work with this: RenderPartObject::updateWidget and HTMLObjectElement::parseMappedAttribute, but I can&#39;t find out how does webkit check the &quot;data&quot; attribute and decide which mimetype to use.</div>

<div> </div>
<div>Could you give me some tips?</div>
<div>Thanks!</div></blockquote></div><br>