A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "AllowSeamless"

From WHATWG Wiki
Jump to: navigation, search
(Examples)
(Examples)
Line 12: Line 12:
 
<html allowseamless>
 
<html allowseamless>
 
<body>
 
<body>
If my parent iframe has the seamless attribute, then <a href="http://example.com">this example link</a> will navigate my parent and the iframe will autosize to the right height and width.
+
If my parent iframe has the seamless attribute, then <a href="http://example.com">this
 +
example link</a> will navigate my parent and the iframe will autosize to the right height
 +
and width.
 
</body>
 
</body>
 
</pre>
 
</pre>
Line 20: Line 22:
 
<html allowseamless="inherit-style">
 
<html allowseamless="inherit-style">
 
<body>
 
<body>
Now in addition to the above, I will inherit styles from my parent. Inheriting styles requires an additional opt-in because letting my parent style me could leak more information (such as the value of form input elements) to my parent.
+
Now in addition to the above, I will inherit styles from my parent. Inheriting styles requires
 +
an additional opt-in because letting my parent style me could leak more information (such
 +
as the value of form input elements) to my parent.
 
</body>
 
</body>
 
</pre>
 
</pre>

Revision as of 01:28, 24 May 2012

Overview

TODO

Use Cases

TODO

Examples

<html allowseamless>
<body>
If my parent iframe has the seamless attribute, then <a href="http://example.com">this
example link</a> will navigate my parent and the iframe will autosize to the right height
 and width.
</body>


<html allowseamless="inherit-style">
<body>
Now in addition to the above, I will inherit styles from my parent. Inheriting styles requires
an additional opt-in because letting my parent style me could leak more information (such
as the value of form input elements) to my parent.
</body>