Skip to content

document.write calls are not supported in HTML fragments #2

@ncarver

Description

@ncarver

Reported by ryan.petrich [at] medialets.com, Mar 9, 2014

What steps will reproduce the problem?

  1. Attempt to use any sort of ad tag that uses document.write
  2. Note how the document has been replaced with a one that is always in readyState=="loading"
  3. Attempt to use any MRAID APIs from the inner document

See attached patch on safar/mraidview.js for a fix. Was applied against the current version on webtester.mraid.org
https://mraid-web-tester.googlecode.com/issues/attachment?aid=210000000&name=mraidview.js.patch&token=ABZ6GAfQhynUE1_ZQlZsZsm1gHIg9ioPkA%3A1404246058225

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions