def getElementById(id):
    JS("""
    var elem = $doc['getElementById'](@{{id}});
    return elem ? elem : null;
    """)
:return: A key tuple used to compare and sort this `IPAddress` correctly.
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/DOM.browser.py/getElementById--crossover with--dataset/ETHPy150Open drkjam/netaddr/netaddr/ip/__init__.py/IPAddress.sort_key