| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Helper utility functions for manipulating the DOM. | 6 * Helper utility functions for manipulating the DOM. |
| 7 */ | 7 */ |
| 8 var DomUtil = {}; | 8 var DomUtil = {}; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 * | 39 * |
| 40 * @param {DOMNode} parent | 40 * @param {DOMNode} parent |
| 41 * @param {string} text | 41 * @param {string} text |
| 42 */ | 42 */ |
| 43 DomUtil.AddText = function(parent, text) { | 43 DomUtil.AddText = function(parent, text) { |
| 44 var doc = parent.ownerDocument; | 44 var doc = parent.ownerDocument; |
| 45 var n = doc.createTextNode(text); | 45 var n = doc.createTextNode(text); |
| 46 parent.appendChild(n); | 46 parent.appendChild(n); |
| 47 return n; | 47 return n; |
| 48 }; | 48 }; |
| OLD | NEW |