Index: trunk/parsers/wikidom/lib/synth/views/es.ListBlockItemView.js |
— | — | @@ -68,7 +68,11 @@ |
69 | 69 | * @returns {String} HTML data |
70 | 70 | */ |
71 | 71 | es.ListBlockItemView.prototype.getHtml = function( options ) { |
72 | | - return es.Html.makeTag( 'li', {}, this.contentView.getHtml() ); |
| 72 | + return es.Html.makeTag( |
| 73 | + 'div', |
| 74 | + { 'class': this.$.attr( 'class' ) }, |
| 75 | + this.contentView.getHtml() |
| 76 | + ); |
73 | 77 | }; |
74 | 78 | |
75 | 79 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/synth/views/es.ListBlockView.js |
— | — | @@ -80,7 +80,13 @@ |
81 | 81 | * @returns {String} HTML data |
82 | 82 | */ |
83 | 83 | es.ListBlockView.prototype.getHtml = function( options ) { |
84 | | - // TODO: Build tree of list items based on their style stacks and make an HTML list tree |
| 84 | + return es.Html.makeTag( |
| 85 | + 'div', |
| 86 | + { 'class': this.$.attr( 'class' ) }, |
| 87 | + $.map( this.views, function( view ) { |
| 88 | + return view.getHtml(); |
| 89 | + } ).join( '' ) |
| 90 | + ); |
85 | 91 | }; |
86 | 92 | |
87 | 93 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/synth/views/es.DocumentView.js |
— | — | @@ -38,9 +38,13 @@ |
39 | 39 | */ |
40 | 40 | es.DocumentView.prototype.getHtml = function() { |
41 | 41 | var views = this.views; |
42 | | - return $.map( this.views, function( view, i ) { |
43 | | - return view.getHtml( { 'singular': i === 0 && views.length == 1 } ); |
44 | | - } ).join( '' ); |
| 42 | + return es.Html.makeTag( |
| 43 | + 'div', |
| 44 | + { 'class': this.$.attr( 'class' ) }, |
| 45 | + $.map( this.views, function( view, i ) { |
| 46 | + return view.getHtml( { 'singular': i === 0 && views.length == 1 } ); |
| 47 | + } ).join( '' ) |
| 48 | + ); |
45 | 49 | }; |
46 | 50 | |
47 | 51 | /* Inheritance */ |
Index: trunk/parsers/wikidom/lib/synth/views/es.ParagraphBlockView.js |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | es.ParagraphBlockView.prototype.getHtml = function( options ) { |
61 | 61 | var html = this.contentView.getHtml(); |
62 | 62 | if ( !options.singular ) { |
63 | | - html = es.Html.makeTag( 'p', {}, html ); |
| 63 | + html = es.Html.makeTag( 'div', { 'class': this.$.attr( 'class' ) }, html ); |
64 | 64 | } |
65 | 65 | return html; |
66 | 66 | }; |