Rename query to searchParams because it conflicts with ParentNode's query. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23586