[whatwg] <a onlyreplace>
Chris Taylor
Chris.Taylor at figureout.com
Thu Oct 22 02:22:41 PDT 2009
Looking at this (simplified) example from Markus:
<html>
<head>
<title id="title">My title</title>
<base onlyreplace="title">
</head>
<body>
<ul id="navigation">
<li><a href="otherpage.html" onlyreplace></li>
</ul>
<div id="contents">
<p>Text</p>
<div>
</body>
</head>
Would it be better to be able to specify multiple onlyload base elements? Like so:
<html>
<head>
<title id="title">My title</title>
<base id="onlyreplace1" onlyreplace="title">
<base id="onlyreplace2" onlyreplace="contents">
</head>
<body>
<ul id="navigation">
<li><a href="otherpage1.html" onlyreplace="onlyreplace1">Replace the title</a></li>
<li><a href="otherpage2.html" onlyreplace="onlyreplace2">Replace the content</a></li>
</ul>
<div id="contents">
<p>Text</p>
<p><a href="otherpage2.html" onlyreplace="onlyreplace2">Replace me</a></p>
<div>
</body>
</head>
That way it gives authors much more control over that they choose to be replaced. This does mean that the "onlyreplace" attribute on links (and forms) should perhaps be renamed "onlyreplaceref" or similar. Has this idea already been put forward by someone else? (I may have missed it).
Chris
This message has been scanned for malware by SurfControl plc. www.surfcontrol.com
More information about the whatwg
mailing list