This method uses a loop to traverse upwards the DOM tree in order to find the root document/element. While this might have an impact on performance I don't expect Oga itself to call this method very often. The benefit is that Node instances don't require users to manually pass the top level document as an argument. |
||
|---|---|---|
| .. | ||
| oga | ||
| support | ||
| spec_helper.rb | ||