<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"><<a href="mailto:guannaixuan@gmail.com">guannaixuan@gmail.com</a>></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><OBJECT id="StormPlayer" width = 800 height = 400 data = "<a href="http://1.wmv/" target="_blank">1.wmv</a>"></OBJECT></div>
<div> </div>
<div>when webkit detect the object, it automatically thought the mimetype of this object is "video/x-ms-wmv"</div>
<div>when I change the data attribute to "1.avi", webkit thought the mimetype is "video/x-msvideo"</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 "video/x-ms-wmv", but I got nothing.</div>
<div>Currently I only know two functions may work with this: RenderPartObject::updateWidget and HTMLObjectElement::parseMappedAttribute, but I can't find out how does webkit check the "data" attribute and decide which mimetype to use.</div>
<div> </div>
<div>Could you give me some tips?</div>
<div>Thanks!</div></blockquote></div><br>