9

Could somebody explain what is the meaning of DomHelper in google closure?

What is it for and how it may be useful?

Thanks!

edit: Here is a more detailed answer

Evgeny
  • 10,698
  • 9
  • 60
  • 70

2 Answers2

8

DomHelper offers similar functionality to that provided by static utility methods within goog.dom. The difference is that a DomHelper instance can be bound to a document object corresponding to a different window, such as an IFrame, or the parent frame. This basically allows UI controls to conduct their DOM manipulations within the confines of the correct window, even if the actual objects live in another.

levik
  • 114,835
  • 27
  • 73
  • 90
0

Assuming you are referring to goog.dom.DomHelper - it looks like it provides an efficient, cross-browser solution to DOM manipulation.

Justin Ethier
  • 131,333
  • 52
  • 229
  • 284