qwaerstd — 2012-03-20T16:52:59-04:00 — #1
I'm using the Soundcloud HTML 5 plugin on my site. It is a bit temperamental on IE9. On some computers the play button doesn't work, on some it doesn't display at all, and on some it is fine.
My Doctype is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Which was automatically set in Dreamweaver. DO I need to change to the HTML doctype, and if I do, will this affect anything else in my site, or the site's functionality in IE7 and 8?
(I'm using the Soundcloud Flash plugin on IE7 and 8. This is throwing quite a few "There is no attribute..." errors in Dreamweaver but seems to be working)
ralphm — 2012-03-20T17:50:31-04:00 — #2
You can certainly switch to the HTML5 doctype, and it shouldn't cause any problems. Though it probably also won't fix your button problem, either.
ryanreese — 2012-03-20T22:37:46-04:00 — #3
Any doctype will do the job and keep browsers standard. It's an issue though, using a transitional doctype, because you are essentially telling the browser that your page is in transition mode from years and years ago. And unless you are serving a mime type for text/xhtml, you aren't using TRUE XHTML, more like fake XHTML. If you were to be using XHTML, and serving the mime type, IE wouldn't be playing along and even showing the website.
You should really be using a HTML4.01 Strict doctype (for the reasons in the above paragraph).
As Ralph said, it won't FIX your problems, but changing your doctype (although a few validation errors may go away/come due to the change).
Are you viewing the page in dreamweaver? Or I assume online on a web browser. Is it different browsers not displaying hte button?