Mozilla stuff

Uhm...

2004-06-22

Another inline xbl template:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Page title</title>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="url">
<content xmlns:xbl="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">
<children/><html:br/>
<a xmlns="http://www.w3.org/1999/xhtml" xbl:inherits="href=cite"/>
</content>
</binding>

</bindings>
<style>
blockquote{-moz-binding:url(#url);
}
a::after{content:attr(href);}
div:target{
-moz-binding:url(#url);
}
</style>
</head>
<body>
<blockquote cite="#test">some text</blockquote>
<div id="test" cite="http://nu.nl">does this work?</div>
</body></html>

0 Comments:

Post a Comment

<< Home