Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1087025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:53:12+00:00 2026-05-16T22:53:12+00:00

While validating my not be a big issue to some people, I personally want

  • 0

While validating my not be a big issue to some people, I personally want my page to validate whenever possible, as I feel it’s a good habit to code properly whether the compiler/browser/person reading your code understands anyways.

Anyways, I’m building a website for a client that is requesting a YouTube video of theirs be embedded in the page. Easy, I grab the code from YouTube and throw it in the page. It works of course, but the page now doesn’t validate under XHTML 1.0 Strict solely because of the YouTube-generated code.

The part that doesn’t validate is the embed portion, and it works fine without this line in Chrome, but breaks in Firefox/IE. If it was just IE I’d just shrug it off as IE being terrible as per usual, but being as Firefox is doing it as well I’m wondering how to approach the situation. I could just dynamically input the content based on the browser, therefore validating, but that seems sloppy.

Am I fighting a losing battle and should just ignore the fact that this page doesn’t validate because of this snippet?

Not actual video, just example code

<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/oHg5SJYRHA0?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/oHg5SJYRHA0?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
</object>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:53:13+00:00Added an answer on May 16, 2026 at 10:53 pm
    <object type="application/x-shockwave-flash"
        data="http://www.youtube.com/v/oHg5SJYRHA0?fs=1&amp;hl=en_US"
        width="480" height="385">
      <param name="movie"
          value="http://www.youtube.com/v/oHg5SJYRHA0?fs=1&amp;hl=en_US"/>
      <param name="allowFullScreen" value="true"/>
      <param name="allowscriptaccess" value="always"/>
    </object>
    

    That should work on IE, Firefox, Opera, Safari and Chrome.

    The data attribute of <object> and the movie parameter must both be present and must have the same value.

    In IE this prevents the SWF from streaming and, for example, presenting a pre-loader, but that should be a non-issue for YouTube.

    For more, and for a fix for that last problem, see Flash Satay: Embedding Flash While Supporting Standards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While validating my JavaScript code in JSLint (www.jslint.com). I got a error I've never
I'm getting the following error while validating an xml document while using IXMLDOMDocument2 (C++):
Visual studio just started throwing error BC30037: Character is not valid. at me (while
I get the upcoming error while validating the XML against the schema. Value 'this/is/a/simple/node-path'
While using Struts2, I am using several annotations to do my validations inside the
While the C# spec does include a pre-processor and basic directives (#define, #if, etc),
While going through university and from following the development of SO, I've heard a
While I've seen rare cases where private inheritance was needed, I've never encountered a
While setting up CruiseControl, I added a buildpublisher block to the publisher tasks: <buildpublisher>
While working in a Java app, I recently needed to assemble a comma-delimited list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.