This testcase: <object><div style="color: green; background: yellow">xyz</div></object> doesn't let me use the inspector to inspect the <div>. This is a problem in common usage when the outer <object> is ActiveX and there's a fallback <object> or embed for the real thing. It's also a problem when someone wants to inspect the <param>s of an <object>.
And, annoyingly, <object codebase="flash"><param <param name="src" value="foo" /></object> fails to show the params, which made it hard for me to tell what video it was pointing at ☺
Ummm. w/o the typo in <param ofc :-/
Just discovered this bug to on Windows 7 64-bit with Firefox 25.0. I wanted to view the <param>'s inside a <object> but there was none in the inspector so i just thought that was how the code was but no. Guess you cant relay on inspector to be accurate, just like it switches the attributes around and add code that issent in the sourcecode.
Created attachment 8459266 [details] [diff] [review] inspector-dom-walker-reparent-object.patch DocumentWalker tries to detect if it needs to reparent itself to an SVGDocument by checking if an element implements getSVGDocument method. The problem here is that object element always implements getSVGDocument method whether or not it contains one. If <object> doesn't contain an SVGDocument, DocumentWalker aborts the child resolution as it tries to reparent itself on a null document. This patch checks that getSVGDocument actually returns a document before attempting to reparent to an SVGDocument. It also includes a small test case to check the functionality. Try: https://tbpl.mozilla.org/?tree=Try&rev=6abc2f5234d1