All pastes #93709 Raw Edit

Input binding XHTML

public text v1 · immutable
#93709 ·published 2006-07-20 18:14 UTC
rendered paste body
<?xml-stylesheet type="text/css" href="chrome://global/skin/"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<head>
  <title>HTML input binding test</title>
  <style type="text/css"><![CDATA[
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace xul  url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

html|input[type="uri"], xul|input[type="uri"] {
  -moz-binding: url("chrome://xulwidgets/content/tests/inputBinding.xml#uri-binding");
}

html|input[type="uri"], xul|input[type="uri"] > html|input {
  text-decoration: underline;
}
  ]]></style>
</head>
<body>
  <form action="javascript:void()">
    <p>HTML input: 
      <input type="uri" size="20" value="http://www.w3.org"/>
    </p>

    <p>XUL input: 
      <xul:input type="uri" size="20" value="http://www.w3.org"/>
    </p>
  </form>
</body>
</html>