testing - How to test the case that HTML <object> (or a similar feature) is unsupported? -
i'm writing web page has html <object>
in it, like
<object [...]>your browser not support this.</object>
on machines have up-to-date browsers installed , don't want clutter machines old browsers (this not possible in cases without depending on third-party-software and/or doing hours of configuration tweaking).
i know of pages https://www.browserstack.com/ let render websites, rather time consuming when need check loads of small changes. , don't want give data external companies simple rendering.
how can check how page on old browsers?
just found out. content between <object></object>
tags not triggered in unsupporting browsers, when data
attribute holds invalid target (like unavailable file).
so, test how looks on unsupporting browsers, 1 can set data
-attribute unavailable. keep in mind webdesigner has define more meaningful message "your browser not support svg", has consider object display missing (for example in dynamic setting of data attribute via php, data=<?php echo getfile(); ?>
when function returns undefined).
Comments
Post a Comment