Index: trunk/parsers/wikidom/lib/hype/bases/es.DocumentModelNode.js |
— | — | @@ -146,6 +146,16 @@ |
147 | 147 | }; |
148 | 148 | |
149 | 149 | /** |
| 150 | + * Gets the symbolic element type name. |
| 151 | + * |
| 152 | + * @method |
| 153 | + * @returns {String} Symbolic name of element type |
| 154 | + */ |
| 155 | +es.DocumentModelNode.prototype.getElementType = function() { |
| 156 | + return this.element.type; |
| 157 | +}; |
| 158 | + |
| 159 | +/** |
150 | 160 | * Gets the content length. |
151 | 161 | * |
152 | 162 | * FIXME: This method makes assumptions that a node with a data property is a DocumentModel, which |