Hi Albert,
Thanks for the replies.
1. IMG vs OBJECT
I just tested it out with IE8; and IE8 does serve up a PNG image, but it does have some quirks (treats it like a QuickTime application initally; the height and width should be specified, and a no-border css value should be present)
I recommend that you could have a comment that says:
"Comment: The W3C recommends the OBJECT tag instead of the IMG tag. However, using the OBJECT tag to display an image, may trigger quirks in Internet Explorer 8 if the image size is not set. Additionally, it and may not render correctly in IE7. If you use scripting to render browser-specific content, consider serving images by using OBJECT tag for standards-compatible browsers.
2. application/javascript
Although application/javascript does not work with IE8, you can put a comment similar to the one above.
"Comment: The correct mime type is application/javascript. However, Internet Explorer ignores the "application/javascript" MIME type when used. If you use scripting to render browser-specific content, consider serving the javascript MIME type by using "application/javascript" for standards-compatible browsers.
3. JS file extension
I would suggest that if CSE finds "text/javascript" or "application/javascript" in a tag, it immediately checks if the src attribute value has an extension of .js; else throw a caution. (Note that some Google search/adsense scripts do not have a js extension). [It's always good to caution a user nevertheless]
4. SVG images
You could have a comment with the following text:
Comment: Did you know that you can use SVG vector images instead of PNG/GIF? SVG images can offer better quality, scalability, and smaller file sizes.
5. PNG images
MNG and APNG are the animated counterparts of GIF, but browser support is poor. You could have a comment with the following text:
Comment: If your GIF file is not animated, you can consider using the PNG format instead. PNG offers much greater quality and lower file sizes. Additionally, you can also consider using SVG images that are vector formats, and offer several advantages over PNG and GIF.
Hope this helps. It would give users that much more information when coding. General knowledge through such comments above is always a good thing.
