[ALOY-12] DOM parsing busted
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-19T11:52:04.000+0000 |
Affected Version/s | 2012 Sprint 14 |
Fix Version/s | 2012 Sprint 14 |
Components | Runtime, XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Tony Lukasavage |
Created | 2012-05-07T14:18:31.000+0000 |
Updated | 2013-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
File | Date | Size |
---|---|---|
domfail.png | 2012-05-07T14:18:31.000+0000 | 10331 |
I think this may be because we have not yet implemented the functionality to pull in external scripts and css styles.
No external scripts (other than the controller which is impemented) or css styles are used in the test case.
Resolved here: [https://github.com/mtnlife999/Declarative-UI/commit/786001b6b73a0b22343b833c66105603eea1475a](https://github.com/mtnlife999/Declarative-UI/commit/786001b6b73a0b22343b833c66105603eea1475a)