Roots can not be waterlogged on java. However they can be waterlogged on bedrock.
MC-227200 Hanging roots can be placed underwater
MC-228583 Using bone meal on rooted dirt over water consumes the bone meal, but does not create hanging roots