Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17702

iframe is not supported in XHTML 1.0 Strict


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 1.9.3
    • Accessibility, Resource
    • None

      When linking to a file or website in the resources options, you can specify the parameter "Keep page navigation visible on the same page". If you check it, it will embed the file in an iframe. But iframes are not supported in XHTML 1.0 Strict, thus they need to be replaced.

      The new form of specifying something similiar to the <iframe> tag is to use the <object> tag. Here is an example:

      <iframe id="embeddedhtml" src ="http://www.ashcombe.surrey.sch.uk/MM_french/1a_self_family/self_family_fset.htm" width="100%" height="600"></iframe>

      should be

      <object id="embeddedhtml" type="text/html" data="http://www.ashcombe.surrey.sch.uk/MM_french/1a_self_family/self_family_fset.htm" width="100%" height="600"></object>

      I have tested it in Firefox 3.0.4, Safari 3.2.1 and Internet Explorer 7 (IE7 asked me to accept the blocked content) and it works perfectly. If you want to tested in other browsers, it will be helpful.

        1. iframe-object-test.html
          0.8 kB
        2. objectTest.tar.gz
          0.6 kB
        3. test.ie.conditional.zip
          2 kB
        4. test.ie.object.zip
          1 kB

            danmarsden Dan Marsden
            david.horat David Horat
            0 Vote for this issue
            2 Start watching this issue


                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.