Adjusting the definition of fallback-free object

This page

   http://www.systemrequirementslab.com/bonus/t/analysis2.tmpl?registration_option_id=7840

fails to work given these rules

   http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-nameditem

(...which WebKit and Opera more or less implement. Firefox and IE do things differently.)


I think it could be made to work without regressing other pages by changing the definition of "fallback-free" such that an object is fallback-free if it does not have any object or embed descendants. Maybe applet should be in the list, too. img should probably not be in the list considering spacer gifs.


Discussion at http://krijnhoetmer.nl/irc-logs/whatwg/20090407#l-489

# [16:03] <zcorpan> the page does <object id=ie><comment><object id=moz><table><tr><td>&nbsp;</table>
# [16:03] <zcorpan> along with if (null != document.moz) ... else if (null != document.ie) ... else return // error
# [16:03] <zcorpan> both objects are ignored because they have "fallback"

-- 
Simon Pieters
Opera Software

Received on Tuesday, 7 April 2009 14:27:48 UTC