W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2012

Re: [Off-topic] HTML 4.01 and the IFRAME element

From: David Dorward <david@dorward.me.uk>
Date: Wed, 11 Jan 2012 00:15:00 +0000
Cc: www-validator-css@w3.org
Message-Id: <7F5BC127-428D-4869-BE3E-4E0D825E8F8E@dorward.me.uk>
To: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
On 10 Jan 2012, at 21:50, Philip TAYLOR wrote:
> I already seem to have hit one nasty using IFRAME (a complete
> show-stopper, in fact) : my JavaScript DOM-walker doesn't
> seem able to recurse inside the IFRAME  -- is this, too, to
> be expected, do you know ?

The child nodes of an iframe element are the alternative content for browsers without iframe support (or with it disabled). You want the contentDocument[1] property to reach the document loaded inside the frame (subject to the same origin policy[2]):

[1] https://developer.mozilla.org/en/XUL/iframe#p-contentDocument
[2] https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript

David Dorward
Received on Wednesday, 11 January 2012 00:15:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:11 UTC