Coding for search

I tried to implement site search for my website.
Following directions at https://duckduckgo.com/search_box
I came up with

This works fine in Firefox and IE but not in Brave.
I would appreciate comments from Brave experts.