File: malformed.e

package info (click to toggle)
entity 0.7.2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,352 kB
  • ctags: 5,272
  • sloc: ansic: 61,707; sh: 7,921; makefile: 732; perl: 399
file content (21 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!env entity

<object default-lang="javascript">
  <window ondelete="entity:exit" title="Malformed Test">
    <valign>
      <button onclick="malformed" label="Append Malformed XML"/>
      <?javascript
	    
	    function malformed (timer_node)
	    {
		xml = "<button name=\"foo\" bar=\"some stuff\"> <label text=\"me & myself\"/> </button>";
		enode ("valign").append_xml (xml);
		button = enode ("valign").new_child ("button");
		button.attrib.label="Tested";
		button.attrib.onclick="entity:exit";
	    }

	?>
    </valign>
  </window>
</object>