Titanium JIRA Archive
Alloy (ALOY)

[ALOY-12] DOM parsing busted

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-19T11:52:04.000+0000
Affected Version/s2012 Sprint 14
Fix Version/s2012 Sprint 14
ComponentsRuntime, XML
Labelsn/a
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2012-05-07T14:18:31.000+0000
Updated2013-05-01T14:56:07.000+0000

Description

The following markup renders incorrectly. Instead of a header followed by a content section, it instead prints to headers
<html>
	<head>
		<title>Declarative UI Master Detail Test</title>
		<script src="/controller/index.js"></script>
	</head>
	<body>
		<div id="mainWindow" data-ti-api="Window" style="-ti-layout:'vertical';">
			<div id="header" data-ti-api="View" style="-ti-height:40; -ti-backgroundColor:'#a00'; -ti-top:0;">
				<div id="title" data-ti-api="Label" style="-ti-text:'My Title'; -ti-color:'#fff'"></div>
			</div>
			<div id="content" data-ti-api="View" style="-ti-backgroundColor:'#fff'">
				<div id="label1" data-ti-api="Label" style="-ti-text:'Content'; color:'#000';"></div>
			</div>
		</div>
	</body>
	<script>
	$Ti('#title').addEventListener('click', function(e) {
		alert('you clicked me!');
	});
	</script>
</html>

Attachments

FileDateSize
domfail.png2012-05-07T14:18:31.000+000010331

Comments

  1. Russell McMahon 2012-05-07

    I think this may be because we have not yet implemented the functionality to pull in external scripts and css styles.
  2. Tony Lukasavage 2012-05-08

    No external scripts (other than the controller which is impemented) or css styles are used in the test case.
  3. Tony Lukasavage 2012-05-08

    Resolved here: [https://github.com/mtnlife999/Declarative-UI/commit/786001b6b73a0b22343b833c66105603eea1475a](https://github.com/mtnlife999/Declarative-UI/commit/786001b6b73a0b22343b833c66105603eea1475a)

JSON Source